#include <iostream> #include<string> using namespace std; int main() { string str,cur,ret; cin>>str; for(int i=0;i<=str.length();i++){ if(str[i]>='0'&&str[i]<='9'){ cur+=str[i]; }else{ if(cur.size()<ret.size()){ ...