class Solution {
public:
bool areNumbersAscending(string s) {
istringstream ss(s);
int pre=-1;
string res;
while(ss>>res){
if(isdigit(res[0])){
int cur=stoi(res);
if(cur<=pre) return false;
pre=cur;
}
}
return true;
}
};