#include #include int main(void){ char c[100005] = {}; char buf,max; int i,j,l,m,k; scanf("%s",c); l = strlen(c); for(i=0;i