import java.util.Scanner;
public class IO {
public static byte input(String s, byte a){
Scanner kb = new Scanner(System.in);
System.out.print(s);
a=kb.nextByte();
return a;
}
public static int input(String s, int a){
Scanner kb = new Scanner(System.in);
System.out.print(s);
a=kb.nextInt();
return a;
}
public static boolean input(String s, boolean a){
Scanner kb = new Scanner(System.in);
System.out.print(s);
a=kb.hasNextBoolean();
return a;
}
public static Object Input(String s){
Object o=null;
Scanner kb = new Scanner(System.in);
System.out.print(s);
if(kb.hasNextByte()) return (byte)kb.nextByte();
else if(kb.hasNextInt()) return (int)kb.nextInt();
else if(kb.hasNextFloat()) return (float)kb.nextFloat();
else if(kb.hasNextDouble()) return (double)kb.nextDouble();
else if(kb.hasNextBoolean()) return (boolean) kb.hasNextBoolean();
return kb.next();
}
}