#include <stdio.h>
int main() {
int num, a, b, c, temp;
scanf("%d", &num);
a = num / 100;
b = (num / 10) % 10;
c = num % 10;
if (a < b) {
temp = a;
a = b;
b = temp;
}
if (a < c) {
temp = a;
a = c;
c = temp;
}
if (b < c) {
temp = b;
b = c;
c = temp;
}
printf("%d\n", a * 100 + b * 10 + c);
return 0;
}
/**************************************************************
Problem: 1042
User: fuhoubin
Language: C++
Result: Accepted
Time:8 ms
Memory:1144 kb
****************************************************************/