#include <iostream>
#include <cstdio>
using namespace std;
int read();
int main()
{
int a[121]={0},b,i=0,x;
freopen("AgeSort.in","r",stdin);
freopen("AgeSort.out","w",stdout);
while(true)
{
x=read();
if (x==-1) break;
a[x]++;
}
for(i=0;i<121;i++)
{
while (a[i]--)
printf("%d ",i);
}
return 0;
}
int read()
{
int res=-1;
char c;
while (c=getchar())
{
while (c=='\n') c=getchar();
if (!(c>='0'&&c<='9'))break;
if (res==-1) res=0;
res=res*10+c-'0';
}
return res;
}