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