gets
while str = gets do
    array = str.chomp.split(" ").map(&:to_i)
    array = array.sort
    if array[2] * array[2] == array[1] * array[1] + array[0] * array[0]
        puts "YES"
        else
        puts "NO"
    end
end