public class Exersises { public static void main(String[] args) { Scanner sc = new Scanner (System.in); int nst = sc.nextInt(); int nnd = sc.nextInt(); int nrd = sc.nextInt(); boolean f = nst == nnd; boolean s = nnd == nrd; boolean t = nst == nrd; boolean fo = nst == nnd & nst == nrd; if (fo){ System.out.println(nst+" "+nnd+" "+nrd); } else if (f){ System.out.println(nst +" "+ nnd); } else if (s){ System.out.println(nnd +" "+ nrd); } else if (t){ System.out.println(nrd +" "+ nst); } } }