#include <iostream>
usingnamespace std.;
int sdiv (int y) {
int i;
int s = y; // ca sa nu uitam ca orice numar se divide pe el insusi
for (i=1; i <= y/2; i++){
if (y%i == 0) s += i;
}
return s;
}
int n, suma_div;
int main(){
cin>>n;
suma_div = sdiv(n);
if (sdiv(suma_div) == suma_div + 1) cout<<"DA";
else coud<<"NU";
return 0;
}
:D