(lambda l, _=[]: [i > 0 and _.append(i ** 2) for i in l] and print(' '.join(map(str, _))))(reversed(list(map(int, input().strip().split()))))