P23183 [AtCoder] [ABC013A] A
入门
题目描述

Problem Description

Takahashi is very poor at English and hasn't yet mastered the alphabet.

Please create a program that determines the position of a given alphabet from A in order.

However, Takahashi doesn't know numbers greater than 5, so the given alphabet will be one of A, B, C, D, E. Also, A itself is considered the 1st alphabet from A (not the 0th).

Input Format

The input is given from the standard input in the following format:

$ X $

  • The first line contains a single uppercase English letter $ X $, which is one of A, B, C, D, E.

Output Format

Output the position of $ X $ from A in one line.

Ensure a newline at the end of the output.

Sample Input and Output

Sample Input #1

A

Sample Output #1

1

Sample Input #2

B

Sample Output #2

2

Sample Input #3

C

Sample Output #3

3

Sample Input #4

D

Sample Output #4

4

Notes/Hints

Sample Explanation 1

A is the first alphabet, so output 1.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
A
样例输出
1