#include
int main()
{
int n,a,b,c,t;
scanf("%d",&n);
a=n/100;
b=n/10%10;
c=n%10;
if(a>b)
{
t=a;
a=b;
b=t;
}
if(a>c)
{
t=a;
a=c;
c=t;
}
if(b>c)
{
t=b;
b=c;
c=t;
}
n=a*100+b*10+c;
printf("%d\n",n);
return 0;
}
#include
int main()
{
int n,a,b,c,t;
scanf("%d",&n);
a=n/100;
b=n/10%10;
c=n%10;
if(a>b)
{
t=a;
a=b;
b=t;
}
if(a>c)
{
t=a;
a=c;
c=t;
}
if(b>c)
{
t=b;
b=c;
c=t;
}
n=a*100+b*10+c;
printf("%d\n",n);
return 0;
}