#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  int aa = a, bb = b;
  while (bb != 0) {
    int tmp = bb;
    bb = aa % bb;
    aa = tmp;
  }
  int g = aa;
  int d = b / g - a / g;
  if (d > 1)
    printf("Dasha");
  else if (d < -1)
    printf("Masha");
  else
    printf("Equal");
  return 0;
}
