#include <bits/stdc++.h>
int main() {
  long int a, b;
  scanf("%ld%ld", &a, &b);
  long int r, x, y;
  x = a;
  y = b;
  while (y != 0) {
    r = x % y;
    x = y;
    y = r;
  }
  a = a / x;
  b = b / x;
  if (b - a == 1 || a - b == 1)
    printf("Equal\n");
  else if (a > b)
    printf("Masha\n");
  else if (a < b)
    printf("Dasha\n");
  else
    printf("Equal\n");
  return 0;
}
