не выполняется 3 условие , хотя выводит он :
6 6
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
public static void main(String[] args) {
Scanner r = new Scanner(System.in);
int a = r.nextInt();
int b = r.nextInt();
int c = r.nextInt();
if (a==b){
if (b==c)
System.out.println(a+" "+b+" "+c);
}
else if (b==c)
System.out.println(b+" "+c);
else if (a==c)
System.out.println(a+" "+c) ;
}
}