e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Competitions

Week 1: November 2 – 8. Introduction to C language. Part 1

The last digit

Print the last digit of a number.

Input

One positive integer n (1n109).

Output

Print the last digit of the number n.

Time limit 1 second
Memory limit 128 MiB
Input example #1
123
Output example #1
3
Input example #2
6578
Output example #2
8