#include <bits/stdc++.h>
using namespace std;
template <typename T>
string tostr(const T& t) {
  ostringstream os;
  os << t;
  return os.str();
}
long long big = 10000000;
inline long long gcd(long long a, long long b) {
  return b == 0 ? a : gcd(b, a % b);
}
inline long long lcm(long long a, long long b) { return b * a / gcd(a, b); }
int main() {
  string dasha = "Dasha";
  string masha = "Masha";
  long long a, b;
  cin >> a >> b;
  long long l = lcm(a, b);
  long long a1 = l / a;
  long long b1 = l / b;
  if ((a1 - b1 < 0 ? (a1 - b1) * -1LL : a1 - b1) == 1) {
    if (a1 < b1)
      ++a1;
    else
      ++b1;
  }
  if (a1 > b1)
    cout << dasha << endl;
  else if (a1 < b1)
    cout << masha << endl;
  else
    cout << "Equal" << endl;
  return 0;
}
