Even Odd Using Mod

Even Odd Using Mod

Easy Python Operators 13 views
Explanation Complexity

Problem Statement

Read one integer n. Output EVEN if n is even else ODD.

Input Format

One integer n.

Output Format

EVEN or ODD.

Example

-11
ODD

Constraints

-10^18

Input / Output Format

Input Format
One integer n.
Output Format
EVEN or ODD.
Constraints
-10^18

Examples

Input:
-11
Output:
ODD

Example Solution (Public)

Python
import sys
s=sys.stdin.read().strip()
if not s: sys.exit(0)
n=int(s)
sys.stdout.write('EVEN' if n%2==0 else 'ODD')

Official Solution Code

import sys
s=sys.stdin.read().strip()
if not s: sys.exit(0)
n=int(s)
sys.stdout.write('EVEN' if n%2==0 else 'ODD')
Please login to submit solutions.
Editor
Output

                                        
Please login to submit solutions.