Răspuns :
#include <iostream>
using namespace std;
int main()
{ int n,nr,ok=1;
cin>>n;
while (n)
{
cin>>nr;
if(nr%2==1)
ok=0;
n--;
}
if(ok)
cout<<"DA";
else
cout<<"NU";
}
using namespace std;
int main()
{ int n,nr,ok=1;
cin>>n;
while (n)
{
cin>>nr;
if(nr%2==1)
ok=0;
n--;
}
if(ok)
cout<<"DA";
else
cout<<"NU";
}
#include<iostream.h>
using namespace std ;
int main (){int n,i,x,ok=1;
cin>>n;
for(i=1;i<=n;i++){
cin>>x;
if(x%2==1)
ok=0;}
if(ok==1) cout<<"DA";
else cout<<"NU";}
using namespace std ;
int main (){int n,i,x,ok=1;
cin>>n;
for(i=1;i<=n;i++){
cin>>x;
if(x%2==1)
ok=0;}
if(ok==1) cout<<"DA";
else cout<<"NU";}