#include <iostream>
#include <cstdio>

using namespace std;

int main()
{
    int n;
    int a;
    int b;
    int c;
    n = n+1;
    while (n--)
    {
        scanf("%d%d%d", &a, &b, &c);
        if ((a*a+b*b == c*c) || (a*a+c*c == b*b) || (b*b+c*c == a*a) )
        {
            printf("YES\n");
        }
        else
        {
            printf("NO\n");
        }
    }
    return 0;
}