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