#include <iostream> #include<string> using namespace std; int main() { string s; while (getline(cin, s)) { int begin = 0; for (int i = s.size() - 1; i >= 0; i--) { if (s[i] == ' '){ begin = i; cout<<s.size() - ...