#23Easy
Thousands digit
Time: 1 s · Memory: 256 MB
- Arithmetic
Statement
You are given an integer with at least four digits. Find its thousands digit (the fourth digit from the right).
Input format
A single integer ().
Output format
A single digit — the thousands digit of .
Examples
Input
1234
Output
1
Input
56789
Output
6
Note
First drop the lower places (, integer division), then take the last digit (). For example, and .
