#include <iostream>
using namespace std;
int main()
{
int n, a[1001];
cin >> n;
for (int i = 1; i <= n; ++i)
{
cin >> a[i];
}
bool ok = true;
for (int i = 1; i < n; ++i)
{
if (a[i + 1] % 2 == a[i] % 2)
{
ok = false;
}
}
if (ok)
{
cout << "DA";
}
else
{
cout << "NU";
}
return 0;
}