#include <iostream>
using namespace std;
int main(){
int a,b,c,s;
cin>>a>>b>>c;
bool afisat=false;
s = a+b+c;
if(s%a==0){
cout << "DA, "<< s/a-1;
afisat=true;
}
if(s%b==0){
if(!afisat){cout << "DA";afisat = true;}
cout << ", " << s/b-1;
}
if(s%c==0){
if(!afisat){cout << "DA";afisat = true;}
cout << ", " << s/c-1;
}
if(!afisat)cout<<"NU";
}