
#include <iostream>
#include <vector>
#include <iterator>
using namespace std;

void inserta_don(vector<string>& v);

int main() {
   string p;
   vector<string> frase;
   while (cin >> p) frase.push_back(p);
   inserta_don(frase);
   copy(frase.begin(), frase.end(),
        ostream_iterator<string>(cout, " "));
   cout << endl;
}
