#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  long long c;
  while (b != 0) {
    c = a % b;
    a = b;
    b = c;
  }
  return a;
}
long long lcm(long long a, long long b) { return a * b / gcd(a, b); }
int main() {
  int N, M;
  scanf("%d %d", &N, &M);
  long long gc = lcm(N, M);
  long long left = gc / N;
  long long right = gc / M;
  if (abs(left - right) < 2) {
    cout << "Equal";
  } else if (left > right) {
    cout << "Dasha";
  } else
    cout << "Masha";
}
