Problem:
Score : 100 points

Problem Statement

Given is a lowercase English letter C that is not z. Print the letter that follows C in alphabetical order.

Constraints

C is a lowercase English letter that is not z.

Input

Input is given from Standard Input in the following format:

C

Output

Print the letter that follows C in alphabetical order.

Sample Input 1

a

Sample Output 1

b

a is followed by b.

Sample Input 2

y

Sample Output 2

z

y is followed by z.

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Runtime Error)

import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		//入力受け取り
		int n,k,m;
		n = sc.nextInt();
		k = sc.nextInt();
		m = sc.nextInt();
		int ai[] = new int[n-1];

		int sum = 0;

		for(int i = 0 ; i < n-1 ; i++) {
			ai[i] = sc.nextInt();
			sum += ai[i];
		}

		if((m*n)-sum >= 0) {
			System.out.println((m*n)-sum);
		}else if(sum >= m*n ) {
			System.out.println(0);
		}else{
			System.out.println(-1);
		}
	}
}