#include <iostream>
using namespace std;
int n,S,pret;
int main()
{
cin >> n;
for(int i=1;i<=n;i++)
{
cin >> pret;
if(i==1) S+=pret*10;
if(i==9) S+=pret*5;
if(i==15) S+=pret*3;
}
if(S>=200)
cout << "DA\n" << 0 << endl << S-200;
else
cout << "NU\n" << 200-S << endl << 0;
return 0;
}