#include <bits/stdc++.h> using namespace::std; int main() { string str; while (getline(cin, str)) { vector<string> vec; stringstream ss(str); string tmp; int flag = 1; while (getline(ss, tmp, '.')) { vec.push_back(tmp); } if (vec.size() != 4) { ...