
#include <iostream>
#include <list>
using namespace std;

void inserta(list<double>& L, double x);

int main() {
   double x, d;
   list<double> L;
   cin >> x;
   while (cin >> d) L.push_back(d);
   inserta(L, x);
   list<double>::iterator it = L.begin();
   cout << "{";
   if (it != L.end()) {
      cout << *it++;
      while (it != L.end()) {
         cout << ' ' << *it++;
      }
   }
   cout << "}" << endl;
}
