#include using namespace std; int main() { string s; cin >> s; sort(s.begin(),s.end()); int n=s.size(); int idx=0; while(idx