#include <iostream>
using namespace std;
int main() {
int a, reversedNumber = 0, remainder, i;
cin >> a;
while(a != 0) {
remainder = a%10;
reversedNumber = reversedNumber*10 + remainder;
a /= 10;
}
if(a == 0 || a == 1)
cout<<"NU"<<endl;
else {
for(i = 2;i <= n;++i){
if(n % i == 0)
cout<<"DA \n";
}
}
return 0;
}