import Data.List
main = getLine >> getContents >>= mapM_ (putStrLn . solve . sort . map read . words) . lines

solve :: [Int] -> String
solve [x, y, z]
    | z ^ 2 == x ^ 2 + y ^ 2 = "YES"
    | otherwise = "NO"