print(*(int(i) ** 2 for i in reversed(input().split()) if int(i) > 0))