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: Wrong Answer)

#include "stdio.h"

int main(void) {
  /* code */
  int N, K, M;

  scanf("%s %s %s",&N, &K, &M);
  int tmp = M*(N-1);
  int a[N];
  for (int i = 0; i < N; i++) {
    /* code */
    scanf("%d\n",&a[i]);
  }
  for (int r = 0; r < N; r++) {
    tmp -= a[r];

    /* code */
  }
  if(tmp>100){
    printf("%d\n",-1);
  }else if(tmp>0){
    printf("%d\n",tmp);
  }else{
    printf("%d\n", 0);
  }
  return 0;
}