package m.shin; import java.util.Scanner; public class Kadomatsuretsu { public static void main(String[] args) { Scanner s = new Scanner(System.in); String[] c = new String[3]; for(int i = 0;i < 3;i++){ c[i] = s.next(); } s.close(); switch(c[1]){ case "?" : System.out.println("14"); break; case "2" : System.out.println("4"); break; case "3" : System.out.println("1"); break; } } }