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(){
  int n,m,p[100005][2],i,a;
  char s[3];
  scanf("%d",&n);
  scanf("%d",&m);
  for(i=0;i<n;i++){
    p[i][0]=0;
    p[i][1]=0;
  }
  for(i=0;i<m;i++){
    scanf("%d",&a);
    scanf("%s",&s);
    a--;
    if(s[0]=='A'){
      p[a][1]=1;
    }else if(p[a][1]==0){
      p[a][0]++;
    }
  }
  m=0;
  a=0;
  for(i=0;i<n;i++){
    if(p[i][1]){
      m++;
      a+=p[i][0];
    }
  }
  printf("%d %d",m,a);
  return(0);
}