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