/*
 * uppgift3.cc    TDIU06 Programmering, g.k. 2008-03-27
 */
#include <iostream>
#include <map>
#include <utility>
#include <algorithm>
using namespace std;

void print(const pair<int, int>& p)
{
   for (int i = 0; i < p.second; ++i)
      cout << p.first << ' ';
}

int main()
{
   map<int, int> count;
   int           value;
   
   // Räkna hur många gånger varje värde förekommer 
   while (cin >> value)
   {
      ++count[value];
   }
   
   for_each(count.begin(), count.end(), print);
   cout << endl;

   return 0;
}
