s=input() res={} for i in s: res[i]=res.get(i,0)+1 print("".join(sorted(res,key=lambda x:(-res[x],x))))
暂无评论,快来抢首评~
相关推荐