#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  long long a, b;
  cin >> a >> b;
  if (abs(a / gcd(a, b) - b / gcd(a, b)) == 1) {
    cout << "Equal";
  } else {
    if (a < b) {
      cout << "Dasha";
    } else {
      cout << "Masha";
    }
  }
  return 0;
}
