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