#include <iostream>
using namespace std;
int main()
{
int l1, d1, h1, l2, d2, h2;
cin >> l1 >> d1 >> h1 >> l2 >> d2 >> h2;
if(l2 >= l1 || d2 >= d1 || h2 > h1)
cout << „NE“ << endl;
else
cout << „DA“ << endl;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int l1, d1, h1, l2, d2, h2;
cin >> l1 >> d1 >> h1 >> l2 >> d2 >> h2;
if(l2 >= l1 || d2 >= d1 || h2 > h1)
cout << „NE“ << endl;
else
cout << „DA“ << endl;
return 0;
}