a=list(map(str,input().split())) b = list((map(str,sorted(a,key=lambda x: x[0])))) d = b[::-1] print(d)