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: Accepted)

import java.util.*;
public class Main {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);

      String S = sc.next();
      char c = S.charAt(0);

      S = "abcdefghijklmnopqrstuvwxyz";
      char[] a = new char[26];
      for (int i = 0; i < a.length; i++) {
         a[i] = S.charAt(i);
      }

      char cb = a[0];

      for (int i = 0; i < a.length-1; i++) {
         if(c == a[i]){
            cb = a[i+1];
         }
      }

      System.out.println(cb);

   }
}