Judging Moose
Time limit1sMemory limit512 MB
Given the tine counts on each side, print the moose's score as Even x, Odd x, or Not a moose when both sides are zero.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
To estimate the age of a bull moose, you count the tines, the sharp points that extend from the main antlers. An older bull moose tends to have more tines than a younger one. Counting tines alone can mislead you, because a moose can break tines off, for example while fighting another moose. That is why a point system is used to describe the antlers of a bull moose.
The point system works like this. If the number of tines on the left side matches the number on the right side, the moose scores the sum of the two counts and is called an even moose. So an "even 6-point moose" has three tines on each side. If the two sides differ, the moose scores twice the larger count and is called an odd moose. So an "odd 10-point moose" has five tines on one side and four or fewer on the other.
Given the number of tines on the left and on the right, compute the points of the moose.
Input
The first line contains two integers and separated by a space. is the number of tines on the left and is the number of tines on the right, with and .
Output
Print a single line describing the moose. For an even moose print Even x, and for an odd moose print Odd x, where is the points of the moose. If there are no tines on either side, print Not a moose.