← All problems
Even or Odd
Easy
3 solved
Even or Odd
Given one integer N, decide whether it is even or odd.
Print Even if N is divisible by 2, and Odd otherwise. Spelling and capitalisation must match exactly.
Note that N may be negative or zero. Zero is even, and -3 is odd.
Input
A single line containing one integer N.
Output
The word Even or the word Odd.
Constraints
-10^9 <= N <= 10^9
Example 1
Input
4
Output
Even
4 divided by 2 leaves no remainder.
Submit runs your code against 5 test cases — the 1 shown above plus 4 hidden ones covering the awkward cases. Run sample just tries the first example, which is usually what you want while you are still working it out.