1234567891011121314151617
#include <iostream> #include <sstream> int main () { std::string str; int temp; std::string oh; std::getline(std::cin, str); std::stringstream mystr(str); if ((mystr >> temp) && (mystr >> oh)) std::cout << temp << " " << oh <<std::endl; return 0; }