Problems
426 - Valid Triangle (II)
SUBMIT PROBLEM

Valid Triangle (II)

Time Limit: 1 sec

 

The Problem

A triangle is a polygon with three edges and three vertices.

In a triangle have 3 angle and the summation of 3 angle is 180 degree.

Make a simple program that reads 3 integer numbers A, B, and C denoted the value of 3 angle in degree of a triangle. You need to determind that it's valid triangle or not.

 

The Input

Input file contain a series of line, each line contain 3 integer numbers A, B, and C (0<=A, B, C<=180). Input is terminated by EOF.

 

The Output

For each line of input, print "YES" if the triangle is valid otherwise print "NO" in a separate line.

 

Sample Input

60 60 60

60 60 90

45 45 90

 

Sample Output

YES

NO

YES 

 

 

 

Problem Setter: Shahin ShamS