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