ALGOR Opening Contest: Round #1
Problem B · 100 points ·
ICPC rules
~/algor $ cat contests/round-1/B
B. Last digit
1000 ms
64 MB
An integer $n$ is given. Find its last digit.
Input
One integer $n$.
Output
One digit — the last digit of $n$.
Note
$0 \le n \le 10^{9}$
Examples
Input #1
1234
Output #1
4
Input #2
7
Output #2
7