The Easy Game
In each chance he is asked to open a random page
and the last digit of the page number becomes his score.
But, if last digit is "0", he is considered OUT. So, given the page number, can you output the score.
- Each line consists a number $N$, representing the page number.
- Output a single number, the score.
If 0 comes, print $OUT$.
$1 \leq N \leq 1000$
Sample Input 1:
Sample Output 1:
Sample Input 2:
Sample Output 2:
The first number is 241. Since the last digit is 1. The score (output) is 1.
The second number is 40. Since the last digit is 0. He is "OUT".
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, kotlin, PERL6, TEXT, SCM chicken, CLOJ, COB, FS|
Fetching successful submissions