#include <bits/stdc++.h>
using namespace std;
int a, b;
int Gcd(int x, int y) {
  if (x < y) swap(x, y);
  int r = x % y;
  while (r) {
    x = y;
    y = r;
    r = x % y;
  }
  return y;
}
int main() {
  scanf("%d%d", &a, &b);
  int num = Gcd(a, b);
  a /= num;
  b /= num;
  if (abs(a - b) == 1) {
    printf("Equal\n");
  } else if (a > b) {
    printf("Masha\n");
  } else {
    printf("Dasha\n");
  }
  return 0;
}
