#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if ( a * b == c && b * c ==d && d/c == c/b && c/b == b/a) {
cout << "DA";
} else {
cout << "NU";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgYSwgYiwgYywgZDsKICAgIGNpbiA+PiBhID4+IGIgPj4gYyA+PiBkOwogICAgaWYgKCBhICogYiA9PSBjICYmIGIgKiBjID09ZCAmJiBkL2MgPT0gYy9iICYmIGMvYiA9PSBiL2EpIHsKICAgICAgICBjb3V0IDw8ICJEQSI7CiAgICB9IGVsc2UgewogICAgICAgIGNvdXQgPDwgIk5VIjsKICAgIH0KICAgIHJldHVybiAwOwp9