Подскажите где ошибка?
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));
String q1 = reader.readLine();
int w1 = Integer.parseInt(q1);
String q2 = reader.readLine();
int w2 = Integer.parseInt(q2);
String q3 = reader.readLine();
int w3 = Integer.parseInt(q3);
if (w1>w2 && w1>w3){
if (w2>w3){
System.out.println(w1 + " " + w2 + " " + w3);
}
else if (w2<w3){
System.out.println(w1 + " " + w3 + " " + w2);
}
}
if (w1<w2 && w2>w3){
if (w1>w3){
System.out.println(w2 + " " + w1 + " " + w3);
}
else if (w1<w3){
System.out.println(w2 + " " + w3 + " " + w1);
}
}
if (w3>w2 && w1<w3){
if (w2>w1){
System.out.println(w3 + " " + w2 + " " + w1);
}
else if (w2<w1){
System.out.println(w3 + " " + w1 + " " + w2);
}
}
//напишите тут ваш код
}
}