#include <bits/stdc++.h>
using namespace std;
long long gcd(int a, int b) { return a ? gcd(b % a, a) : b; }
int main() {
  long long a, b;
  while (cin >> a >> b) {
    long long gcd_ = gcd(a, b);
    int dash = b / gcd_ + (a > b);
    int mash = a / gcd_ + (b > a);
    if (dash > mash)
      cout << "Dasha\n";
    else if (dash < mash)
      cout << "Masha\n";
    else
      cout << "Equal\n";
  }
}
