Не могу понять. Подскажите пожалуйста где тут проблема, числа то выводит
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int one = scan.nextInt();
int two = scan.nextInt();
int three = scan.nextInt();
if (one == two) {
if (two == three)
System.out.println(one + " " + two + " " + three);
} else if (one == two)
System.out.println(one + " " + two);
else if (two == three)
System.out.println(two + " " + three);
else if (one == three)
System.out.println(one + " " + three);
}
}