ASCII Value of a Character
Print the ASCII code of a single character.
Input format
A single line with one character C (a letter or digit).
Output format
Print the ASCII code of C as an integer.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
AExpected output
65Example 2
Input
zExpected output
122