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