Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
if ((a == b) && (b == c)) {
System.out.print(a + " " + b + " " + c);
}
else if (a == b) {
System.out.print(a);
System.out.print(" ");
System. out.print(b);
}
else if (b == c) {
System.out.print(b);
System.out.print(" ");
System. out.print(c);
}
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
if ((a == b) && (b == c)) {
System.out.print(a + " " + b + " " + c);
}
else if (a == b) {
System.out.print(a);
System.out.print(" ");
System. out.print(b);
}
else if (b == c) {
System.out.print(b);
System.out.print(" ");
System. out.print(c);
}
}
}