#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
int gcd(int a, int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
int main() {
  int a, b;
  cin >> a >> b;
  int d = gcd(a, b);
  a /= d;
  b /= d;
  if (abs(a - b) == 1)
    cout << "Equal\n";
  else if (a > b)
    cout << "Masha\n";
  else
    cout << "Dasha\n";
  return 0;
}
