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