#include <iostream>
using namespace std;
int main()
{
int n, num, i, gasit=0;
cin >> n;
for (i=1; i<=n; ++i)
{
cin >> num;
if (!gasit)
{
int d, e_prim=1;
if (num==0 || num==1) e_prim=0;
if (num>2)
{
if (num%2==0) e_prim=0;
for (d=3; d*d<=num; d+=2)
if (num%d==0) { e_prim=0; break; }
}
if (e_prim==1) gasit=1;
}
}
if (gasit) cout << "DA";
else cout << "NU";
return 0;
}