#include <iostream>
using namespace std;
int main()
{unsigned int n,nru=0,nrz=0;
bool ok=1;
cin>>n;
while (n>0)
{if (n%10==1)
nru++;
else
if (n%10==0)
nrz++;
else
ok=0;
n=n/10;}
if (ok==1 && nrz>=1 && nru>=1)
cout<<"Da";
else
cout<<"Nu";
return 0;
}
nru=numarul de aparitii ale lui 1
nrz=numarul de aparitii ale lui 0