#include <bits/stdc++.h>
int gcd(int n, int m) {
  while (m) {
    int t = n % m;
    n = m;
    m = t;
  }
  return n;
}
int main() {
  int a, b;
  while (scanf("%d %d", &a, &b) != EOF) {
    long long c = a;
    c *= b;
    c /= gcd(a, b);
    long long a1 = c / a;
    long long b1 = c / b;
    if (a1 < b1)
      a1++;
    else
      b1++;
    if (a1 > b1) {
      puts("Dasha");
    } else if (a1 < b1) {
      puts("Masha");
    } else
      puts("Equal");
  }
  return 0;
}
