for i in range ( int ( input ( ) ) ):
  ( a, b, c ) = sorted ( list ( map ( int, input ( ).split ( ) ) ) )
  if ( a ** 2 ) + ( b ** 2 ) == ( c ** 2 ):
    print ( "YES" )
  else:
    print ( "NO" ) for i in range ( int ( input ( ) ) ):
  ( a, b, c ) = sorted ( list ( map ( int, input ( ).split ( ) ) ) )
  if ( a ** 2 ) + ( b ** 2 ) == ( c ** 2 ):
    print ( "YES" )
  else:
    print ( "NO" ) i range ( int ( input ( ) ) ) range int ( input ( ) ) int input ( ) input ( a, b, c ) = sorted ( list ( map ( int, input ( ).split ( ) ) ) ) ( a, b, c ) a b c sorted ( list ( map ( int, input ( ).split ( ) ) ) ) sorted list ( map ( int, input ( ).split ( ) ) ) list map ( int, input ( ).split ( ) ) map int input ( ).split ( ) ( ).split ( ) input split if ( a ** 2 ) + ( b ** 2 ) == ( c ** 2 ):
    print ( "YES" )
  else:
    print ( "NO" ) ( a ** 2 ) + ( b ** 2 ) == ( c ** 2 ) ( a ** 2 ) + ( b ** 2 ) a ** 2 a 2 b ** 2 b 2 c ** 2 c 2 print ( "YES" ) print "YES" print ( "NO" ) print "NO"
for i in range ( int ( input ( ) ) ):
  ( a, b, c ) = sorted ( list ( map ( int, input ( ).split ( ) ) ) )
  if ( a ** 2 ) + ( b ** 2 ) == ( c ** 2 ):
    print ( "YES" )
  else:
    print ( "NO" )