#include <bits/stdc++.h>
long long int gcd(long long int a, long long int b) {
  if (a == 0) {
    return b;
  } else {
    return gcd(b % a, a);
  }
}
int main() {
  long long int a, b, min, max, i, g, t, r;
  scanf("%lld %lld", &a, &b);
  g = (a * b) / gcd(a, b);
  r = g / a;
  t = g / b;
  if (r - t > 1) {
    printf("Dasha");
  } else if (t - r > 1) {
    printf("Masha");
  } else if (abs(r - t) == 1) {
    printf("Equal");
  }
  return 0;
}
