#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long a, b;
  cin >> a >> b;
  long long d = 0, m = 0, curr = 0, ka = a, kb = b;
  while (a != b) {
    if (a < b) {
      d += a - curr;
      curr = a;
      a = a + ka;
    } else {
      m += b - curr;
      curr = b;
      b = b + kb;
    }
  }
  if (ka < kb)
    m += a - curr;
  else
    d += a - curr;
  if (d > m)
    cout << "Dasha"
         << "\n";
  else if (d < m)
    cout << "Masha"
         << "\n";
  else
    cout << "Equal"
         << "\n";
  return 0;
}
