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