#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (a % b == 0) return b;
  return gcd(b, a % b);
}
int main() {
  int a, b, c, x, y;
  cin >> a >> b;
  c = gcd(max(a, b), min(a, b));
  x = b / c - 1;
  y = a / c - 1;
  if (a > b)
    x++;
  else
    y++;
  if (x < y)
    cout << "Masha";
  else if (x == y)
    cout << "Equal";
  else
    cout << "Dasha";
  cout << endl;
}
