#include <iterator>
#include <iostream>
#include <string>
#include <sstream>
int main() {
using namespace std;
string s = "Texto para dividir";
istringstream iss(s);
copy(istream_iterator<string>(iss),
istream_iterator<string>(),
ostream_iterator<string>(cout, "\n"));
}
ICAgICNpbmNsdWRlIDxpdGVyYXRvcj4KICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KICAgICNpbmNsdWRlIDxzdHJpbmc+CiAgICAjaW5jbHVkZSA8c3N0cmVhbT4KICAgIAogICAgaW50IG1haW4oKSB7CiAgICAgICAgdXNpbmcgbmFtZXNwYWNlIHN0ZDsKICAgICAgICBzdHJpbmcgcyA9ICJUZXh0byBwYXJhIGRpdmlkaXIiOwogICAgICAgIGlzdHJpbmdzdHJlYW0gaXNzKHMpOwogICAgICAgIGNvcHkoaXN0cmVhbV9pdGVyYXRvcjxzdHJpbmc+KGlzcyksCiAgICAgICAgICAgICBpc3RyZWFtX2l0ZXJhdG9yPHN0cmluZz4oKSwKICAgICAgICAgICAgIG9zdHJlYW1faXRlcmF0b3I8c3RyaW5nPihjb3V0LCAiXG4iKSk7CiAgICB9