#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  if (a == b)
    printf("Equal\n");
  else {
    int div = gcd(a, b);
    long long g = (long long)a / div * b;
    long long t1 = (long long)g / a - 1;
    long long t2 = (long long)g / b - 1;
    if (a < b)
      ++t2;
    else
      ++t1;
    if (t1 > t2)
      printf("Dasha\n");
    else if (t1 < t2)
      printf("Masha\n");
    else
      printf("Equal\n");
  }
  return 0;
}
