public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
//三元运算符判断大小
int max = a>b?(a>c?a:c):(b>c?b:c);
int min = a<b?(a<c?a:c):(b<c?b:c);
int middle = (a+b+c)-(max+min);
//输出结果
System.out.println("abc由小到大排列结果:"+max+">"+middle+">"+min);
System.out.println("abc由大到小排列结果:"+min+">"+middle+">"+max);
}