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