print(*list(map(lambda x: x ** 2, filter(lambda y: y > 0, map(lambda z: int(z), input().split(' ')))))[::-1])