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