Щербак Андрей Викторович
12.10.2019 21:22 (11:15) [2720601]
print(" ".join(list(reversed([str(int(i)**2) for i in input().split() if int(i) > 0]))))