#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); int a = str.length(); int b; for (int i = 0; i < a; ++i) { if (i == 0 && str[i] !=' ') { b=1; } else if (i == 0 && str[i] == ' ') { b=0; } else if (str[i] != ' ' &...