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;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
        int K = in.nextInt();
        int M = in.nextInt();

        int total = N * M;
        for (int i = 0; i < N - 1; i++) {
            int temp = in.nextInt();
            total -= temp;
        }

        if (total <= K && total > 0) {
            System.out.println(total);
        }
        else if (total < K) {
            System.out.println(0);
        }
        else {
            System.out.println(-1);
        }
    }
}