#include <iostream>
using namespace std;
int main(){
int n,a,b,c;
cout<<"Introduceti numarul de 3 cifre: ";
cin>>n;
a=n/100;
b=(n/10)%10;
c=n%10;
cout<<"Cifrele numarului ordonate crescator: ";
if(c<=b&&b<=a){
cout<<c<<" "<<b<<" "<<a;
}
else if(c<=a&&a<=b){
cout<<c<<" "<<a<<" "<<b;
}
else if(a<=c&&c<=b){
cout<<a<<" "<<c<<" "<<b;
}
else if(a<=b&&b<=c){
cout<<a<<" "<<b<<" "<<c;
}
else if(b<=c&&c<=a){
cout<<b<<" "<<c<<" "<<a;
}
else if(b<=a&&a<=c){
cout<<b<<" "<<a<<" "<<c;
}
return 0;
}