Батраков Артём Глебович
12.10.2019 12:14 (2:07) [2714957]
print(" ".join(int(i)**2 for i in input().split()[::-1] if int(i) > 0))