#include <bits/stdc++.h>
using namespace std;
long long t, x, y, tx, ty, cx, cy;
string Masha = "Masha", Dasha = "Dasha";
string Equal = "Equal";
int main() {
  cin >> x >> y;
  if (y < x) {
    swap(x, y);
    swap(Masha, Dasha);
  }
  tx = x, ty = y;
  while (true) {
    if (tx < ty) {
      cx += tx - t;
      t = tx;
      tx += x;
    } else {
      cy += ty - t;
      t = ty;
      if (tx == ty) break;
      ty += y;
    }
  }
  if (cx == cy)
    cout << Equal << endl;
  else if (cx > cy)
    cout << Dasha << endl;
  else
    cout << Masha << endl;
  return 0;
}
