Some Sum
InterviewTime limit1sMemory limit1024 MB
Given N consecutive positive integers picked from 1 to 100, decide whether their sum is always even, always odd, or can be either.
- Level
Easy2 of 10
- Topics
- Math, Implementation, Brute force, Number theory
- Solved
- No attempts yet
Problem
Your friend has secretly picked consecutive positive integers between and , and wants you to guess if their sum is even or odd.
If the sum must be even, output 'Even'. If the sum must be odd, output 'Odd'. If the sum could be even or could be odd, output 'Either'.
Input
The input is a single integer with .
Output
Output a single word. The word should be 'Even', 'Odd', or 'Either', according to the rules given earlier.