#include <iostream> #include<algorithm> #include<string> #include<vector> using namespace std; int main() { string str; getline(cin, str); int n = 0; int cut = 0; int prve = -1; for (int i = 0; i < str.size(); i++) { if (str[i] >= '0' && str[i] <= '9') { if (prve == -1) { prve = i; } } else { if (prve != -1) { if (i - prve > n) { n = i - prve; cut = prve; } prve = -1; } } if (i == str.size() - 1) { if (prve != -1) { if (i - prve > n) { n = i - prve+1; cut = prve; } } } } cout<<str.substr(cut,n)<<endl; return 0; } // 64 位输出请用 printf("%lld")