#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("date.txt");
bool PP(int n)
{
for(int i=1;i*i<=n;i++)
if(n%i==0 and n/i==i) return true;
return false;
}
int main()
{
int n;
fin>>n;
if(PP(n)==1) cout<<"DA";
else cout<<"NU";
return 0;
}