#include using namespace std; int main(){ string s; cin>>s; char maxnum ='0'; char minnum ='9'; int maxp=0; for(int i=0;i=maxp)break; } cout<