#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long a, b;
  cin >> a >> b;
  long long c = (a * b) / gcd(a, b);
  long long d = c / a, e = c / b;
  if (abs(d - e) != 1) {
    if (a > b)
      cout << "Masha"
           << "\n";
    else
      cout << "Dasha"
           << "\n";
  } else {
    cout << "Equal"
         << "\n";
  }
  return 0;
}
