10093 - Angle Triangle

Angle Triangle

Time Limit: 1 sec

**The Problem**

You are given three angles. You have to find whether these angles belong to same triangle or not.

**The Input**

First line of input contains an integer **N** (**0<N<100**), which indicates the number of triangles.

Then there are N lines, each line contains 3 integers **A, B, C **(**0<=A,B,C<=360**) which represent the value of three angles in degree.

**The Output**

For each input you have to print “**YES**” or “**NO**” (without quotation). If the angles belong to same triangle print “**YES**” otherwise print “**NO**”.

**Sample Input**

2

30 60 90

45 45 45

**Sample Output**

YES

NO

[School Level]

ISCPC 2017 Preliminary

Problem Setter: Puja Chakraborty