#include <bits/stdc++.h>
int main(void) {
  long long a, b;
  scanf("%I64d%I64d", &a, &b);
  long long sum1 = 0, sum2 = 0;
  long long x1 = 0, x2 = 0, current = 0;
  while (1) {
    if (x1 + a < x2 + b) {
      sum1 += x1 + a - current;
      x1 += a;
      current = x1;
    }
    if (x1 + a > x2 + b) {
      sum2 += x2 + b - current;
      x2 += b;
      current = x2;
    }
    if (x1 + a == x2 + b) {
      if (a > b) {
        sum1 += x1 + a - current;
        break;
      } else {
        sum2 += x1 + a - current;
        break;
      }
    }
  }
  if (sum1 < sum2)
    printf("Masha\n");
  else if (sum1 > sum2)
    printf("Dasha\n");
  else
    printf("Equal\n");
  return 0;
}
