for s in open(0):r=s.count;print(*sorted(s.split(),key=lambda a:r(a[0])-r(a[1])),sep='')
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page