#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int a, b;
  cin >> a >> b;
  vector<long long> as, bs;
  for (int i = (int)(1); i < (int)(a + 1); i++) bs.push_back(1ll * b * i);
  for (int i = (int)(1); i < (int)(b + 1); i++) as.push_back(1ll * a * i);
  long long ans_m = 0, ans_d = 0;
  int i = 0, j = 0;
  long long cur = 0;
  while (i < b && j < a) {
    if (as[i] == bs[j]) {
      if (a > b)
        ans_d += as[i] - cur;
      else
        ans_m += as[i] - cur;
      cur = as[i];
      i++;
      j++;
    } else if (as[i] < bs[j]) {
      ans_d += as[i] - cur;
      cur = as[i];
      i++;
    } else {
      ans_m += bs[j] - cur;
      cur = bs[j];
      j++;
    }
  }
  cerr << ans_d << " " << ans_m << endl;
  if (ans_d > ans_m)
    cout << "Dasha" << endl;
  else if (ans_d < ans_m)
    cout << "Masha" << endl;
  else
    cout << "Equal" << endl;
  return 0;
}
