Răspuns :
#include <iostream>
using namespace std;
int main()
{
int x;
cin>>x;
if((x/100==(x/10)%10) && (x/100==x%10) cout<<"DA";
else cout<<"NU";
}
using namespace std;
int main()
{
int x;
cin>>x;
if((x/100==(x/10)%10) && (x/100==x%10) cout<<"DA";
else cout<<"NU";
}