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