#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t a, b;
  cin >> a >> b;
  int64_t diff = a - b;
  if (a % diff == 0 && b % diff == 0)
    cout << "Equal\n";
  else if (a < b)
    cout << "Dasha\n";
  else
    cout << "Masha\n";
  return (0);
}
