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