#include <bits/stdc++.h> using namespace std; int main() { string str; stack<string> temp; while(cin>>str){ int j=0; string s; for(int i=0;i<str.size();i++){ if(str[i]<65||str[i]>122||(str[i]>90&&str[i]<97)){ s=str.substr(j,i-j); temp.push(s); j=i+1; } } temp...