print (' '.join (map(str,sorted ([int(i) ** 2 for i in input().split(' ') if int(i) > 0],reverse = True))))