#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (a == 0) return b;
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  long long a, b;
  cin >> a >> b;
  long long x = (a * b) / gcd(a, b);
  long long m = x / a;
  long long n = x / b;
  if (m - 1 > n - 1) {
    n++;
  }
  if (n - 1 > m - 1) {
    m++;
  }
  if (m > n) {
    cout << "Dasha";
  } else if (n > m) {
    cout << "Masha";
  } else if (n == m) {
    cout << "Equal";
  }
}
