Помогите пж, что не так
package com.javarush.task.task04.task0417;
/*
Существует ли пара?
*/
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int s1 = scanner.nextInt();
int s2 = scanner.nextInt();
int s3 = scanner.nextInt();
if(s1 == s2)
{
System.out.print(s1);
System.out.println(" " + s2);}
if(s2 == s3)
{
System.out.print(s2);
System.out.println(" " + s3);}
if(s1 == s3)
{
System.out.print(s1);
System.out.println(" " + s3);}
if (s1 == s2 && s2 == s3){
System.out.println(s1 + " " + s2 + " " + s3);
}
}}