print(' '.join(map(str, [i ** 2 for i in reversed(list(map(int, input().split()))) if i > 0])))
c87caca9fb41b50bc2cd47b7a3762cc3aab4b429
<mask token>

print(' '.join(map(str, [(i ** 2) for i in reversed(list(map(int, input().
    split()))) if i > 0])))

print(' '.join(map(str, [i ** 2 for i in reversed(list(map(int, input().split()))) if i > 0])))