Easymath
Last Digit
Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0
Statement
You are given a non-negative integer n. Print its last digit.
Examples
Example 1
Input
1234
Output
4
Example 2
Input
7
Output
7
Constraints
- 0 ≤ n ≤ 10^18
You are given a non-negative integer n. Print its last digit.
1234
4
7
7