vector<int> v;
int temp, k, b, l;
while(cin>>temp) v.push_back(temp);
for (int i=0; i<50; ++i) {
for(int i=0; i<v.size(); ++i) {
if(i+1>v.size() && v[i-1]>v[i]) {
k=v[i-1]; b=v[i];
v[i-1]=b; v[i]=k;
}
if(v[i]>v[i+1]) {
k=v[i+1]; b=v[i];
v[i+1]=b; v[i]=k;
}
}
}
for (int i=0; i<50; ++i) {
for(int i=0; i<v.size(); ++i) {