a = [print(x ** 2, end=' ') for x in map(int, (input().split())[::-1]) if x > 0 ]