print(*reversed([i * i for i in map(int, input().split()) if i > 0]))