#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
map<long long, int> m;
map<long long, int> w;
long long tot[2];
string name[2] = {"Dasha", "Masha"};
int main() {
  long long a, b;
  cin >> a >> b;
  long long c = a * b / gcd(a, b);
  int sz = 0;
  w[a] = 0;
  w[b] = 1;
  long long x = min(a, b);
  long long y = max(a, b);
  for (int i = 0; i < (int)y; ++i) {
    m[(c / y) * i] = x;
  }
  for (int i = 0; i < (int)x; ++i) {
    m[(c / x) * i] = y;
  }
  long long last = 0;
  for (typeof m.begin() it = m.begin(); it != m.end(); ++it) {
    tot[w[it->second]] += it->first - last;
    last = it->first;
  }
  typeof m.begin() it = m.end();
  tot[w[m.begin()->second]] += c - last;
  cerr << "tot[0]"
       << " = " << tot[0] << endl;
  cerr << "tot[1]"
       << " = " << tot[1] << endl;
  if (tot[0] > tot[1])
    cout << name[0] << endl;
  else if (tot[1] > tot[0])
    cout << name[1] << endl;
  else
    puts("Equal");
  return 0;
}
