Boolean
Boolean-19
Boolean-20
Boolean-21
~/algor $ cat problems/boolean-juft-raqami-bormi
Is there an even digit?
Easy
1000 ms
64 MB
17%
A three-digit positive integer $n$ is given. Check whether the statement is true: “at least one digit of $n$ is even”. The digit $0$ counts as even too.
Input
One three-digit positive integer $n$.
Output
One integer: $1$ if the statement is true, otherwise $0$.
Note
$100 \le n \le 999$
Examples
Input #1
352
Output #1
1
Input #2
351
Output #2
0