#include <iostream>
#include <vector>
#include <sstream>
#include <algorithm>
#include <iterator>
int main()
{
std::istringstream is("Split At Spaces");
std::vector<std::string> strings;
std::copy(std::istream_iterator<std::string>(is),
std::istream_iterator<std::string>(),
std::back_inserter(strings));
for (auto si = std::begin(strings); si != std::end(strings); si++)
std::cout << *si << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OmlzdHJpbmdzdHJlYW0gaXMoIlNwbGl0IEF0IFNwYWNlcyIpOwogICAgc3RkOjp2ZWN0b3I8c3RkOjpzdHJpbmc+IHN0cmluZ3M7CgogICAgc3RkOjpjb3B5KHN0ZDo6aXN0cmVhbV9pdGVyYXRvcjxzdGQ6OnN0cmluZz4oaXMpLAogICAgICAgICAgICAgIHN0ZDo6aXN0cmVhbV9pdGVyYXRvcjxzdGQ6OnN0cmluZz4oKSwKICAgICAgICAgICAgICBzdGQ6OmJhY2tfaW5zZXJ0ZXIoc3RyaW5ncykpOwoKICAgIGZvciAoYXV0byBzaSA9IHN0ZDo6YmVnaW4oc3RyaW5ncyk7IHNpICE9IHN0ZDo6ZW5kKHN0cmluZ3MpOyBzaSsrKQogICAgICAgIHN0ZDo6Y291dCA8PCAqc2kgPDwgJ1xuJzsKfQo=