#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, A, B, Ac, Bc, r;
  cin >> A >> B;
  vector<string> names = {"Dasha", "Masha"};
  bool swapped = false;
  if (A < B) {
    swap(names[0], names[1]);
    swap(A, B);
  }
  Ac = Bc = 0;
  a = A;
  b = B;
  bool run = true;
  while (run) {
    r = a % b;
    if (r == 0) {
      Ac += b;
      Bc += a - b;
      run = false;
      break;
    }
    Ac += r;
    Bc += a - r;
    a = A - b + r;
    Bc += b - r;
  }
  if (Ac > Bc) {
    cout << names[0] << endl;
    return 0;
  }
  if (Ac < Bc) {
    cout << names[1] << endl;
    return 0;
  }
  cout << "Equal" << endl;
  return 0;
}
