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