Polygon and Angles

5

1 votes
Problem

Pedro is a boy who likes to play games. Also, being the little nerdy boy that he is, he also likes Geometry, and hence likes to play with angles.

In one such game, Pedro is given a set of angles, and he is required to find whether the given set of angles form a valid polygon or not. Since he is not very good at coding, he needs your help to write a code so that he gets the correct answer every time.


Input Format:
The first line of input contains an integer N, the number of angles to be tested. The second line contains N floating point numbers, separated by a space.


Output Format:
Output a line with either Yes or No. Yes if the given number of angles defined a polygon, No if not.


Constraints:
1 ≤ N ≤ 1000

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?