#include <bits/stdc++.h>
using namespace std;
long long nod(int, int);
long long nok(int, int);
int main() {
  int a, b, c, d;
  cin >> a >> b;
  if (a < b) {
    c = nok(a, b) / a - 1;
    d = nok(a, b) / b;
  } else {
    d = nok(a, b) / b - 1;
    c = nok(a, b) / a;
  }
  if (c > d)
    cout << "Dasha" << endl;
  else {
    if (c < d)
      cout << "Masha" << endl;
    else
      cout << "Equal" << endl;
  }
}
long long nod(int a, int b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
long long nok(int x, int y) { return (x / nod(x, y) * y); }
