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