All problems

Problem 804

ASCII Value of a Character

Easy · 10 pts · Basics, String

Problem

Every character is stored as a number, its ASCII code: for example 'A' is 65, 'a' is 97 and '0' is 48. Read one character (a letter, a digit or a punctuation sign; never a space) and print its ASCII code. In C and C++ cast the char to int; in Java cast it to int; in Python use ord().

Input

A single printable character (no space).

Output

Print its ASCII code.

Constraints

The character has an ASCII code from 33 to 126

Example input

A

Example output

65

Explanation

The uppercase letter A has ASCII code 65, so the answer is 65.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Days in a Month Next: Perfect Cube Check