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 C (GCC 5.4.1) (judge verdict: Runtime Error)

#include <stdio.h>

int main(){
    int test;
    int max;
    int average;
    int number[101];
    int i;
    int sum=0;

    scanf("%d %d %d", &test, &max, &average);
    for(i=0;i<test-1;i++){
        scanf("%d", &number[i]);
        sum += number[i];
    }
    if(average*test - sum > max){
        printf("%d\n", -1);
    }else if(average*test <= sum){
        printf("%d\n", 0);
    }else{
        printf("%d\n", average*test-sum);
    }
    return 0;
}