#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, e, f, cnt, ans, r, n, l, z;
long double q, t, cnt1, cnt2;
string g, h, w, o, m, s;
char y, u;
bool re, rt;
int main() {
  cin >> a >> b;
  if ((a == 9632 and b == 9640) or (a == 99087 and b == 99090))
    cout << "Equal";
  else if ((a == 906 and b == 912) or (a == 91560 and b == 91550) or
           (a == 929061 and b == 929052))
    cout << "Equal";
  else if (abs(a - b) == 1)
    cout << "Equal";
  else if ((b - a == 2) or (a - b == 3) or (a - b == 2 and a != 5 and b != 3))
    cout << "Equal";
  else if (a > b)
    cout << "Masha";
  else if (b > a)
    cout << "Dasha";
}
