#CCBCMCHIN0000002. Số chẵn hay số lẻ (Even or Odd)
Số chẵn hay số lẻ (Even or Odd)
Even or Odd
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer , determine whether it is even or odd. An integer is even if it is divisible by ; otherwise it is odd.
Input
A single line contains the integer .
Output
Print EVEN if is even; otherwise print ODD.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Example 1
Input
12
Output
EVEN
Explanation
For x = 12, division by 2 gives remainder 0. Therefore x is even, so the output is EVEN.
Example 2
Input
-7
Output
ODD
Explanation
For x = -7, division by 2 gives remainder 1. Therefore x is odd, so the output is ODD.
Example 3
Input
0
Output
EVEN
Explanation
For x = 0, division by 2 gives remainder 0. Therefore x is even, so the output is EVEN.