Where is the error? Thanks!
package com.codegym.task.task04.task0417;
/*
Do we have a pair?
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner console = new Scanner(System.in);
int a = console.nextInt();
int b = console.nextInt();
int c = console.nextInt();
if (a==b) {
System.out.print(a + " " + b);
}else if (a==c) {
System.out.print(a + " " + c);
}else if (b==c) {
System.out.print(b + " " + c);
}else if ((a==b) && (a==c) && (b==c)) {
System.out.print(a + " " + b + " " + c);
}
}
}