import java.util.Scanner; public class Main { public static void main(String[] args) { //напишите тут ваш код Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); boolean g = (a == b && b ==c); if(a == b && a!=c){ System.out.printf("%d, %d", a, b); } else if (a == c && a!=b) { System.out.printf("%d, %d", a, c); } else if (b == c && b!= a) { System.out.printf("%d, %d", b, c); } else if (g){ System.out.printf("%d, %d, %d", a, b, c); } sc.close(); } }