#include <iostream>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
int main() {
string temp;
while(getline(cin, temp))
{
string name, t;
vector<string> reqs;
stringstream ss(temp);
ss >> name;
while(ss >> t)
{
reqs.push_back(t);
}
cout << name;
for(const auto& a : reqs)
cout << " " << a;
cout << endl;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPHZlY3Rvcj4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXN0cmluZyB0ZW1wOwoJd2hpbGUoZ2V0bGluZShjaW4sIHRlbXApKQoJewoJCXN0cmluZyBuYW1lLCB0OwoJCXZlY3RvcjxzdHJpbmc+IHJlcXM7CgkJc3RyaW5nc3RyZWFtIHNzKHRlbXApOwoJCXNzID4+IG5hbWU7CgkJd2hpbGUoc3MgPj4gdCkKCQl7CgkJCXJlcXMucHVzaF9iYWNrKHQpOwoJCX0KCQljb3V0IDw8IG5hbWU7CgkJZm9yKGNvbnN0IGF1dG8mIGEgOiByZXFzKQoJCQljb3V0IDw8ICIgIiA8PCBhOwoJCWNvdXQgPDwgZW5kbDsKCX0KfQ==
Z2FtZURlc2lnbiBqYXZhIGNzMwpqYXZhIGNzMQpjU2hhcnAgY3MxCmNzMSBjczAKZGlzY3JldGVNYXRoCmRhdGFCYXNlcwpjczIgY3MxCmFkdmFuY2VkR3JhcGhpY3MKY3MzIGNzMgpvcGVyYXRpbmdTeXN0ZW1zCmdyYXBoaWNzIGNzMyBvcGVyYXRpbmdTeXN0ZW1zCmNzMCBtYXRoRm9yS2lkcwpjczQgY3MzIGRhdGFCYXNlcyBvcGVyYXRpbmdTeXN0ZW1zCmJpb2luZm9ybWF0aWNzIGRpc2NyZXRlTWF0aCBjczIKYXNzZW1ibHkgY3MxCm1hdGhGb3JLaWRz
gameDesign java cs3
java cs1
cSharp cs1
cs1 cs0
discreteMath
dataBases
cs2 cs1
advancedGraphics
cs3 cs2
operatingSystems
graphics cs3 operatingSystems
cs0 mathForKids
cs4 cs3 dataBases operatingSystems
bioinformatics discreteMath cs2
assembly cs1
mathForKids