#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <iterator>
#include <algorithm>
using namespace std;
int main ()
{
string input = "";
cout << "Input: ";
cin >> input;
string a,b;
vector<string> objects;
for(stringstream sst(input); getline(sst, a, ','); )
objects.push_back(a);
copy (objects.begin(), objects.end(), ostream_iterator<string>(cout," - "));
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKCmludCBtYWluICgpCnsKCXN0cmluZyBpbnB1dCA9ICIiOwoJY291dCA8PCAiSW5wdXQ6ICI7CgljaW4gPj4gaW5wdXQ7CglzdHJpbmcgYSxiOwoJdmVjdG9yPHN0cmluZz4gb2JqZWN0czsKCglmb3Ioc3RyaW5nc3RyZWFtIHNzdChpbnB1dCk7IGdldGxpbmUoc3N0LCBhLCAnLCcpOyApCgkJb2JqZWN0cy5wdXNoX2JhY2soYSk7CgkgICAgCgogICAgY29weSAob2JqZWN0cy5iZWdpbigpLCBvYmplY3RzLmVuZCgpLCBvc3RyZWFtX2l0ZXJhdG9yPHN0cmluZz4oY291dCwiIC0gIikpOwoKCXJldHVybiAwOwp9