Pairs of a sequence (2)

Write a program that reads sequences of natural numbers, and for each
one tells if it has two elements such that their sum is an odd number.

Input

Input consists of several sequences, each one in a line. Each sequence
consists of a natural number n, followed by n natural numbers
x₁, …, x_(n).

Output

For each input sequence, print “yes” or “no” depending on if it is
possible to find two elements x_(i) and x_(j) (with i ≠ j) such that
x_(i) + x_(j) is an odd number.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:05:21.424Z

© Jutge.org, 2006–2026.
https://jutge.org
