#include <bits/stdc++.h>
long gcd(long a, long b) {
  long c = a % b;
  for (; c;) {
    a = b;
    b = c;
    c = a % b;
  }
  return b;
}
char name[2][15] = {"Dasha", "Masha"};
char opt[15] = {0};
int main() {
  long a, b;
  long c;
  long long d;
  scanf("%ld%ld", &a, &b);
  if (a > b) {
    a ^= b;
    b ^= a;
    a ^= b;
    strcpy(opt, name[0]);
    strcpy(name[0], name[1]);
    strcpy(name[1], opt);
  }
  c = gcd(a, b);
  a /= c;
  b /= c;
  d = (long long)a * (b - a) + (long long)a * (a - 1) / 2;
  if ((long long)a * b - d == d)
    printf("Equal\n");
  else if (d > (long long)a * b - d)
    printf("%s\n", name[0]);
  else
    printf("%s\n", name[1]);
  return 0;
}
