помогите с решением
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
boolean one = (a==b && b==c);
boolean two = (a==b);
boolean three = (a==c);
boolean four = (b==c);
if (one){
System.out.println(a+" ",b+" ",c);
} else if (two){
System.out.println(a+" ",b);
} else if (three){
System.out.println(a+" ",c);
} else if (four){
System.out.println(b+" ",c);
}
}
}