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