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