#include<iostream>
using namespace std;
int main()
{
int n, v[200], i, prim, div;
cin>>n;
for(i=1;i<=n;i++)
cin>>v[i];
for(i=1;i<=n;i++)
{
prim=1;
for(div=2;div*div<=v[i];div++)
if(v[i]%div==0) { prim=0; break; }
if(v[i]<2) prim=0;
if(prim==1) break;
}
if(prim==1) cout<<"DA";
else cout<<"NU";
}