#include <iostream>
using namespace std;
int main()
{
int n, ok1 = 0, ok2 = 0;
bool corect = true;
cin >> n;
while (n > 0)
{
int c = n % 10;
if (c == 1)
{
ok1++;
}
if (c == 0)
{
ok2++;
}
if (c != 0 && c != 1)
{
corect = false;
break;
}
n /= 10;
}
if (ok1 >= 1 && ok2 >= 1 && corect == true)
{
cout << "da";
}
else
{
cout << "nu";
}
return 0;
}