eolymp
bolt
Try our new interface for solving problems
Problems

The first digit of the number

The first digit of the number

Find the first digit of an integer. Start count digits from the leftmost one.

Input

One 64-bit integer containing at least one digits. The number can be negative.

Output

Print the first digit of a given integer.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1234567890123
Output example #1
1
Input example #2
-7654321
Output example #2
7
Author Mykhailo Medvediev
Source Programming language C