print(' '.join(map(str, sorted(list(map(lambda x: x**2, filter(lambda x: x >= 0, map(int, input().split())))), reverse=True))))