#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int a, b;
int main() {
  scanf("%d%d", &a, &b);
  long long lcm = (long long)a / gcd(a, b) * b;
  int cnta = lcm / a;
  int cntb = lcm / b;
  if (a > b) {
    cntb--;
  } else {
    cnta--;
  }
  if (cnta > cntb) {
    printf("Dasha\n");
  } else if (cnta == cntb) {
    printf("Equal\n");
  } else {
    printf("Masha\n");
  }
  return 0;
}
