#include <bits/stdc++.h>
int gcd(int a, int b) {
  if (!b)
    return a;
  else
    return gcd(b, a % b);
}
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  int g = gcd(a, b);
  a /= g;
  b /= g;
  if (a < b - 1)
    printf("Dasha\n");
  else if (b < a - 1)
    printf("Masha\n");
  else
    printf("Equal\n");
  return 0;
}
