import sys arr = list(map(int, sys.stdin.read().split())) for i in range(len(arr) - 1, 0, -1): if arr[i] > 0: print(arr[i] ** 2, end=' ')