﻿#include <iostream>

using namespace std;

int main()
{
   setlocale(LC_ALL, "RU");
   double x, y;
   cin >> x >> y;//
   if (y==(5*x*x-7*x+2))
	   cout << "ДА";
   else
	   cout << "НЕТ";
   return 0;
}

