#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c >> d;
if (b % a != c % b != d % c || (b / a != c / b) ||
(c / b != d / c)) {
cout << "NU";
} else {
cout << "DA";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgYSwgYiwgYywgZDsKICAgIGNpbiA+PiBhID4+IGIgPj4gYyA+PiBkOwogICAgaWYgKGIgJSBhICE9IGMgJSBiICE9IGQgJSBjIHx8IChiIC8gYSAhPSBjIC8gYikgfHwKICAgICAgICAoYyAvIGIgIT0gZCAvIGMpKSB7CiAgICAgICAgY291dCA8PCAiTlUiOwogICAgfSBlbHNlIHsKICAgICAgICBjb3V0IDw8ICJEQSI7CiAgICB9CiAgICByZXR1cm4gMDsKfQ==