#include #include #include using namespace std; const int NULA = 0; typedef float moj; int main( void ) { for( int i = 0; i < 3; ++i ) { int a, b, c; scanf( "%d%d%d", &a, &b, &c ); if( a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b ) printf( "DA\n" ); else printf( "NE\n" ); } return NULA; }