Codeforces Global Round 1
A
Parity
Codeforces
900
原题
←B →
翻译中…

You are given an integer $n$ ($n \ge 0$) represented with $k$ digits in base (radix) $b$. So,

翻译中…

$$n = a_1 \cdot b^{k-1} + a_2 \cdot b^{k-2} + \ldots a_{k-1} \cdot b + a_k.$$

翻译中…

For example, if $b=17, k=3$ and $a=[11, 15, 7]$ then $n=11\cdot17^2+15\cdot17+7=3179+255+7=3441$.

翻译中…

Determine whether $n$ is even or odd.

翻译中…

Input

翻译中…

The first line contains two integers $b$ and $k$ ($2\le b\le 100$, $1\le k\le 10^5$) — the base of the number and the number of digits.

翻译中…

The second line contains $k$ integers $a_1, a_2, \ldots, a_k$ ($0\le a_i \lt b$) — the digits of $n$.

翻译中…

The representation of $n$ contains no unnecessary leading zero. That is, $a_1$ can be equal to $0$ only if $k = 1$.

翻译中…

Output

翻译中…

Print "even" if $n$ is even, otherwise print "odd".

翻译中…

You can print each letter in any case (upper or lower).

翻译中…

Note

翻译中…

In the first example, $n = 3 \cdot 13^2 + 2 \cdot 13 + 7 = 540$, which is even.

翻译中…

In the second example, $n = 123456789$ is odd.

翻译中…

In the third example, $n = 32 \cdot 99^4 + 92 \cdot 99^3 + 85 \cdot 99^2 + 74 \cdot 99 + 4 = 3164015155$ is odd.

翻译中…

In the fourth example $n = 2$.

翻译中…

样例

Input #1
13 3
3 2 7
Output #1
even
InputCopy OutputCopy
Input #2
10 9
1 2 3 4 5 6 7 8 9
Output #2
odd
InputCopy OutputCopy
Input #3
99 5
32 92 85 74 4
Output #3
odd
InputCopy OutputCopy
Input #4
2 2
1 0
Output #4
even
InputCopy OutputCopy
题目信息
题号
1110A
时间限制
1 s
内存限制
256 MB
标签
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。