Equal to the sum of the rest (I)

Write a program that, given a sequence of natural numbers, tells if
there is any number equal to the sum of the rest.

Input

Input contains several cases. Each case begins with a number n ≥ 1
followed by n natural numbers.

Output

For each case, tell if it has a number equal to the sum of the rest.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T11:54:23.034Z

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