Code seems to produce the correct output and im printing the result to the screen. However the print to screen criteria wont validate?
package com.codegym.task.task04.task0417;
/*
Do we have a pair?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String a = br.readLine();
int resultA = Integer.parseInt(a);
String b = br.readLine();
int resultB = Integer.parseInt(b);
String c = br.readLine();
int resultC = Integer.parseInt(c);
if (resultA == resultB && resultA == resultC)
System.out.println(resultA + " " + resultB + " " + resultC);
else if (resultA <= resultB && resultB == resultC)
System.out.println(resultB + " " + resultC);
}
}