#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
int main()
{
std::string sentence;
std::getline(std::cin, sentence);
{
std::istringstream in(sentence);
std::ostringstream out;
std::vector<std::string> words{std::istream_iterator<std::string>(in),
std::istream_iterator<std::string>() };
std::rotate_copy(words.begin(), words.begin() + 1, words.end(),
std::ostream_iterator<std::string>(out, " "));
sentence = out.str();
}
std::cout << sentence;
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aXRlcmF0b3I+CiNpbmNsdWRlIDxzc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OnN0cmluZyBzZW50ZW5jZTsKICAgIHN0ZDo6Z2V0bGluZShzdGQ6OmNpbiwgc2VudGVuY2UpOwogICAgewogICAgICAgIHN0ZDo6aXN0cmluZ3N0cmVhbSAgaW4oc2VudGVuY2UpOwogICAgICAgIHN0ZDo6b3N0cmluZ3N0cmVhbSBvdXQ7CiAgICAgICAgc3RkOjp2ZWN0b3I8c3RkOjpzdHJpbmc+IHdvcmRze3N0ZDo6aXN0cmVhbV9pdGVyYXRvcjxzdGQ6OnN0cmluZz4oaW4pLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGQ6OmlzdHJlYW1faXRlcmF0b3I8c3RkOjpzdHJpbmc+KCkgICB9OwogICAgICAgIHN0ZDo6cm90YXRlX2NvcHkod29yZHMuYmVnaW4oKSwgd29yZHMuYmVnaW4oKSArIDEsIHdvcmRzLmVuZCgpLAogICAgICAgICAgICAgICAgICAgICAgICAgc3RkOjpvc3RyZWFtX2l0ZXJhdG9yPHN0ZDo6c3RyaW5nPihvdXQsICIgIikpOwogICAgICAgIHNlbnRlbmNlID0gb3V0LnN0cigpOwogICAgfQogICAgc3RkOjpjb3V0IDw8IHNlbnRlbmNlOwp9Cg==