#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int a, b, t1, t2, s1 = 0, s2 = 0;
  cin >> a >> b;
  t1 = a;
  t2 = b;
  long long int t = 0;
  while (1) {
    if (t1 == t2) {
      if (a < b) {
        s2 += (t2 - t);
      } else {
        s1 += (t1 - t);
      }
      break;
    } else if (t1 < t2) {
      s1 += (t1 - t);
      t = t1;
      t1 += a;
    } else {
      s2 += (t2 - t);
      t = t2;
      t2 += b;
    }
  }
  if (s1 > s2) {
    cout << "Dasha";
  } else if (s1 < s2) {
    cout << "Masha";
  } else {
    cout << "Equal";
  }
}
