public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner sc = new Scanner(System.in); String a = sc.nextLine(); char ch1 = a.charAt(0); char ch2 = a.charAt(1); String course; String level; if(ch1>='A' && ch1<='Z'){ switch(ch1){ case 'I': course="Information Technology "; break; case 'P': course="Philology "; break; case 'B': course="Business school "; break; default: System.out.println("Invalid input"); } } if(ch2>=1 && ch2<=4){ switch(ch2){ case 1: System.out.println(course+"Freshman"); break; case 2: System.out.println(course+"sophomore"); break; case 3: System.out.println(course+"junior"); break; case 4: System.out.println(course+"senior"); break; default: System.out.println("Invalid input"); } } } }