#include <iostream>
using namespace std;
int main()
{
int x, a, b ,c;
cout<<"x=", cin >>x;
cout<<"a=", cin >>a;
cout<<"b=", cin >>b;
cout<<"c=", cin >>c;
if (x % a==0 && x % b==0 && x % c==0)
{
cout<<"DA"<<endl;
}
else
{
cout<<"NU"<<endl;
}
return 0;
}