#include <algorithm>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
int main() {
auto str = "The quick brown fox"s;
auto start = find(cbegin(str), cend(str), ' ');
vector<string> tokens{ string(cbegin(str), start) };
while (start != cend(str)) {
const auto finish = find(++start, cend(str), ' ');
tokens.push_back(string(start, finish));
start = finish;
}
copy(cbegin(tokens), cend(tokens), ostream_iterator<string>(cout, "\n"));
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aXRlcmF0b3I+CiNpbmNsdWRlIDxzdHJpbmc+CiNpbmNsdWRlIDx2ZWN0b3I+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglhdXRvIHN0ciA9ICJUaGUgcXVpY2sgYnJvd24gZm94InM7CglhdXRvIHN0YXJ0ID0gZmluZChjYmVnaW4oc3RyKSwgY2VuZChzdHIpLCAnICcpOwoJdmVjdG9yPHN0cmluZz4gdG9rZW5zeyBzdHJpbmcoY2JlZ2luKHN0ciksIHN0YXJ0KSB9OwoKCXdoaWxlIChzdGFydCAhPSBjZW5kKHN0cikpIHsKCQljb25zdCBhdXRvIGZpbmlzaCA9IGZpbmQoKytzdGFydCwgY2VuZChzdHIpLCAnICcpOwoKCQl0b2tlbnMucHVzaF9iYWNrKHN0cmluZyhzdGFydCwgZmluaXNoKSk7CgkJc3RhcnQgPSBmaW5pc2g7Cgl9CgkKCWNvcHkoY2JlZ2luKHRva2VucyksIGNlbmQodG9rZW5zKSwgb3N0cmVhbV9pdGVyYXRvcjxzdHJpbmc+KGNvdXQsICJcbiIpKTsKfQ==