#include<iostream>
#include<sstream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
string a{ "hello world" };
istringstream out(a);
string temp;
vector<string> b;
while (out >> temp) {
transform(temp.begin(), temp.end(), temp.begin(), [](const char &s) {char op; if (isupper(s)) op=tolower(s); else if (islower(s))op=toupper(s); return op; });
b.push_back(temp);
}
return 0;
}