#include <iostream>
#include <cmath>
using namespace std;
int main(){
int n, v[200], i;
cin>>n;
for(int i = 0; i < n; ++i)
cin>>v[i];
for(i = 0; i < n; ++i){
int x = v[i];
bool prim = true;
if(x % 2 == 0 && x != 2 || x < 2) prim = false;
else {
int sq = sqrt(x);
for(int j = 3; j <= sq; ++j)
if(x % j == 0) prim = false;
}
if(prim) break;
}
if(i == n) cout<<"NU"; //Daca a ajuns la n, inseamna ca nu a gasit nici un numar prim else cout<<"DA";
}