import java.util.Scanner;
public class pppp {
public static void main(String args[]){
char a = '0';
System.out.print("Please input a = ");
Scanner reader =new Scanner(System.in);
String r = reader.next();
a = r.charAt(0);
if((a<=77&&a>=65)||(a>=97&&a<=109))//查了ASCII,M的ASCII值为77,m的ASCII值为97
System.out.printf("This character is %c",a-1);
if((a>=78&&a<=90)||(a>=110&&a<=122))//N的ASCII值为78,n的ASCII值为109
System.out.printf("This character is %c",a+1);
}
}