прошу помощи, подскажите где ошибка пожалуйста
package com.javarush.task.task04.task0417;
/*
Существует ли пара?
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String r = reader.readLine();
int a = Integer.parseInt(r);
int b = Integer.parseInt(r);
int c = Integer.parseInt(r);
if(a==b && b==c && c==a)
System.out.println(a + " " + b + " " + c);
else if(a==b && a<c)
System.out.print(a + " " + b);
else if(a==c && c<b)
System.out.print(a + " " + c);
else if(b==c && c<a)
System.out.print(b + " " + c);
}
}