#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
int main() {
  int a, b;
  long long dasha = 0, masha = 0;
  cin >> a >> b;
  long long tempA = a, tempB = b, last = 0;
  while (tempA != tempB) {
    if (tempA < tempB) {
      dasha += tempA - last;
      last = tempA;
      tempA += a;
    } else {
      masha += tempB - last;
      last = tempB;
      tempB += b;
    }
  }
  if (dasha < masha)
    dasha += tempA - last;
  else
    masha += tempB - last;
  if (dasha == masha) {
    cout << "Equal";
  } else if (dasha > masha) {
    cout << "Dasha";
  } else {
    cout << "Masha";
  }
}
