#C11113. Even or Odd: Total Apples
Even or Odd: Total Apples
Even or Odd: Total Apples
You are given n baskets, each containing a certain number of apples. Your task is to determine whether the total number of apples is even or odd.
In other words, if the sum \(S = \sum_{i=1}^{n}{a_i}\) of apples across all baskets satisfies \(S \mod 2 = 0\), then output even
, otherwise output odd
.
inputFormat
The first line contains an integer n
representing the number of baskets. The second line contains n
space-separated integers where each integer ai
represents the number of apples in the i-th basket.
outputFormat
Output a single line: even
if the total number of apples is even, or odd
if it is odd.
5
3 4 6 2 5
even