#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  long long a, b, gc;
  long long ga, gb, gcc;
  cin >> a >> b;
  gc = gcd(a, b);
  gcc = a / gc * b;
  ga = gcc / a;
  gb = gcc / b;
  if (a < b)
    ga--;
  else if (a > b)
    gb--;
  if (ga > gb)
    cout << "Dasha" << endl;
  else if (ga < gb)
    cout << "Masha" << endl;
  else
    cout << "Equal" << endl;
  return 0;
}
