#include <bits/stdc++.h>
using namespace std;
long long a, b, c, d;
int main() {
  cin >> a >> b;
  c = a;
  d = b;
  long long cur = 0, a1 = 0, a2 = 0;
  while (c != d) {
    if (c < d) {
      a1 += c - cur;
      cur = c;
      c += a;
    } else {
      a2 += d - cur;
      cur = d;
      d += b;
    }
  }
  if (a < b)
    a2 += d - cur;
  else
    a1 += c - cur;
  if (a1 > a2)
    cout << "Dasha" << endl;
  else if (a2 > a1)
    cout << "Masha" << endl;
  else
    cout << "Equal" << endl;
}
