#include #include struct name { std::string name; int num[5]; }; int main(void) { int x; int i = 0; struct name foo; struct name bar; std::cin >> foo.name; while (std::cin >> x) { foo.num[i] = x; i++; if (i >= 5) break; } i = 0; if (std::cin) std::cout << "We have data" << std::endl; std::cin.clear(); std::cin >> bar.name; while (std::cin >> x) { bar.num[i] = x; i++; if (i >= 5) break; } std::cout << foo.name.size() << " " << bar.name.size() << std::endl; return 0; }