#include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
int main(){
string str = "dsfsfs sdfsf sfdsf dsdf";
stringstream ss(str);
vector< string > arr;
while( ss>>str )
arr.push_back(str);
for( size_t i = 0; i < arr.size(); i++ )
cout<<arr[i]<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CiAgICBzdHJpbmcgc3RyID0gImRzZnNmcyAgICBzZGZzZiBzZmRzZiAgZHNkZiI7CiAgICBzdHJpbmdzdHJlYW0gc3Moc3RyKTsKICAgIHZlY3Rvcjwgc3RyaW5nID4gYXJyOwogICAgd2hpbGUoIHNzPj5zdHIgKQogICAgICAgIGFyci5wdXNoX2JhY2soc3RyKTsKICAgIGZvciggc2l6ZV90IGkgPSAwOyBpIDwgYXJyLnNpemUoKTsgaSsrICkKICAgICAgICBjb3V0PDxhcnJbaV08PGVuZGw7CiAgICByZXR1cm4gMDsKfQ==