Integer
Integer-13
Integer-14
Integer-15
~/algor $ cat problems/minglar-raqami
Thousands digit
Easy
1000 ms
64 MB
12%
A positive integer $n$ is given. Find the digit in its thousands place, that is, the fourth digit from the end.
Input
One positive integer $n$.
Output
One digit — the thousands digit of the number.
Note
$1000 \le n \le 10^{9}$
Examples
Input #1
12345
Output #1
2
Input #2
1000
Output #2
1