P. First digit !
time limit per test
0.25 secondsmemory limit per test
64 megabytesinput
standard inputoutput
standard outputGiven a number X. Print "EVEN" if the first digit of X is even number. Otherwise print "ODD".
For example: In 4569 the first digit is 4, the second digit is 5, the third digit is 6 and the fourth digit is 9.
Input
Only one line containing a number X (999 < X ≤ 9999)
Output
If the first digit is even print "EVEN" otherwise print "ODD".
Examples
input
Copy
4569
output
Copy
EVEN
input
Copy
3569
output
Copy
ODD
No comments:
Post a Comment