package com.javarush.task.task04.task0420;
/*
Сортировка трех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int mid;
int max = Math.max(Math.max(a,b),c);
int min = Math.min (Math.min(a,b),c);
if (a<max && a>min) mid=a;
else if (b<max && b>min) mid=a;
else mid =c;
System.out.println(max+" "+mid+" "+min);
}
}
И что не так?