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