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