import Data.List
main = getContents >>= mapM_ (putStrLn . fout . is_it_a_right_triangle . fin) . lines
fin = sort . map (read::String->Int) . words
fout p = if p then "YES" else "NO"

is_it_a_right_triangle [x,y,z] = x^2 + y^2 == z^2