public class Suma { public static void main (String []args) throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader (System.in)); int num; System.out.println("¿1+1?"); num= Integer.valueOf(in.readLine().trim()).intValue(); if (num==2) { System.out.println("Correcto"); }} }