pls, help me out with this.
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 st = new Scanner(System.in);
int x = st.nextInt();
int y = st.nextInt();
int z = st.nextInt();
if (x == y){
System.out.println(x +" "+ y);
}
else if (x == z){
System.out.println(x +" "+ z);
}
else if ((x == z) && (z == y)){
System.out.println(x +" "+ z +" "+ y);
}
//write your code here
}
}