Equal to the sum of the rest (II)

Write a program that, given a sequence of integer 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 n1n\ge1 followed by nn integer 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-25T12:14:01.351Z

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