#include <iostream>
#include <string>
#include <sstream>
int main()
{
std::string word, sentence;
std::getline(std::cin,sentence);
std::istringstream ss(sentence);
ss >> word >> std::ws;
std::getline(ss, sentence);
sentence += ' ' + word;
std::cout << sentence << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8c3N0cmVhbT4KCmludCBtYWluKCkKewogICAgc3RkOjpzdHJpbmcgd29yZCwgc2VudGVuY2U7CiAgICBzdGQ6OmdldGxpbmUoc3RkOjpjaW4sc2VudGVuY2UpOwogICAgc3RkOjppc3RyaW5nc3RyZWFtIHNzKHNlbnRlbmNlKTsKICAgIHNzID4+IHdvcmQgPj4gc3RkOjp3czsKICAgIHN0ZDo6Z2V0bGluZShzcywgc2VudGVuY2UpOwogICAgc2VudGVuY2UgKz0gJyAnICsgd29yZDsKICAgIHN0ZDo6Y291dCA8PCBzZW50ZW5jZSA8PCBzdGQ6OmVuZGw7Cn0=