#CCBCHMUOI0000010. Mã chữ cái A B C (A B C Letter Code)

Mã chữ cái A B C (A B C Letter Code)

A B C Letter Code

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Read a character. Print 1 for uppercase A, 2 for uppercase B, 3 for uppercase C, and 0 for any other character. Uppercase and lowercase letters are distinct.

Input

One visible non-whitespace ASCII character (codes 33–126).

Output

Print exactly one of the digits 1, 2, 3 or 0 according to the mapping.

Subtasks

  • Subtask 1 (20 points): Character is A, B or C.

  • Subtask 2 (30 points): Character is an uppercase letter A through Z.

  • Subtask 3 (50 points): Visible ASCII character with code 33 through 126.

Examples

Example 1

Input

B

Output

2

Explanation

B matches case B and maps to 2.

Example 2

Input

b

Output

0

Explanation

Lowercase b matches none of the uppercase cases and maps to 0.