#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("bac.in");
int main()
{
int n,i,ok=1,x,prev=-1;
fin>>n;
for(i=1;i<=n && ok;i++)
{
fin>>x;
if(x%2==0)
{
if( x>=prev)
prev=x;
else
ok=0;
}
}
if(ok)
cout<<"DA";
else
cout<<"NU";
fin.close();
return 0;
}