#include<bits/stdc++.h> using namespace std; int main() { string s; int a = 0; char b; while (b != '\n') { cin.get(b); if (b == ' ') { a = 0; } else if (b != '\n') { a ++; } else ...