gets a
while line = gets do
    a[0],a[1],a[2] = line.split.map(&:to_i)
    a.sort
    if a[2]**2==a[1]**2+a[0]**2 then
        puts "YES"
    else then
        puts "NO"
    end
    puts c.to_s.length
end