#include <bits/stdc++.h>
long long gcd(long long a, long long b) {
  if (b == 0) {
    return a;
  }
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
int main() {
  int a, b;
  std::cin >> a >> b;
  long long c = lcm(a, b);
  long long x = c / a;
  long long y = c / b;
  if (a < b) {
    ++y;
  } else {
    ++x;
  }
  if (x > y) {
    std::cout << "Dasha" << std::endl;
  } else if (x < y) {
    std::cout << "Masha" << std::endl;
  } else {
    std::cout << "Equal" << std::endl;
  }
}
