Question: Write a program to check whether a triangle is valid or not, when the three positive angles of the triangle are the inputs. A triangle

Write a program to check whether a triangle is valid or not, when the three positive angles of the triangle are the inputs. A triangle is valid if the sum of all the three angles is equal to 180 degrees.

Constraints

1 A,B,C 180

Input Format

Line contains three angles A, B and C, of the triangle separated by space.

Output Format

Display 'YES' if the triangle is valid, and 'NO', if it is not.

Sample #1

Input

180 1 1

Output

NO

Sample #2

Input

40 40 100

Output

YES

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!