#include <bits/stdc++.h>
using namespace std;
int isP(long int hj) {
  long int op;
  for (op = 2; op <= sqrt(hj); op++) {
    if (hj % op == 0) return 0;
  }
  return 1;
}
void swap(long long int *p, long long int *q) {
  long long int tmp = *p;
  *p = *q;
  *q = tmp;
}
long long int fact(long long int p) {
  long long int fct, j = 1;
  for (j = p; j >= 1; j--) fct *= j;
  return fct;
}
string fdi(int hi) {
  switch (hi) {
    case 0:
      return "zero";
    case 1:
      return "one";
    case 2:
      return "two";
    case 3:
      return "three";
    case 4:
      return "four";
    case 5:
      return "five";
    case 6:
      return "six";
    case 7:
      return "seven";
    case 8:
      return "eight";
    case 9:
      return "nine";
  }
  return "";
}
long long int bd(long long int mk, long long int nk) {
  long long int i;
  for (i = min(mk, nk); i >= 1; i--) {
    if (mk % i == 0 && nk % i == 0) return i;
  }
  return 0;
}
int dsm(long long int pkk) {
  if (pkk < 0) pkk *= -1;
  while (pkk > 0) {
    if (pkk % 10 == 8) return 1;
    pkk /= 10;
  }
  return 0;
}
void seving(int ar[], long long int n) {
  long long int i, j;
  for (i = 3; i < n; i += 2) ar[i] = 1;
  ar[2] = 1;
  for (i = 2; i < n; i++) {
    if (ar[i] == 1) {
      for (j = i * i; j < n; j += i) ar[j] = 0;
    }
  }
}
int tellme(int a, int b, int c) {
  if (c < a + b)
    return 1;
  else if (a + b == c)
    return 2;
  else
    return 0;
}
int vow(string ch) {
  int i;
  for (i = 0; i < ch.size(); i++) {
    if (ch[i] >= 48 && ch[i] <= 57) return 1;
  }
  return 0;
}
int rk(char ch1, char ch2) {
  char str[9] = {'6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'};
  int i, j;
  for (i = 0; i < 9; i++) {
    if (str[i] == ch1) break;
  }
  for (j = 0; j < 9; j++) {
    if (str[j] == ch2) break;
  }
  if (i > j)
    return 1;
  else
    return 0;
}
long long int gcd(long long int a, long long int b) {
  if (a == 0)
    return b;
  else
    return gcd(b % a, a);
}
int main() {
  long long int i, m, n, lt, a, p, ans, f, k, lt1, lt2, b, t, q, j, ct, bx, by,
      sx, sy, l, x, r, prevI;
  cin >> a >> b;
  p = (a * b) / gcd(min(a, b), max(a, b));
  l = p / a;
  r = p / b;
  if (abs(l - r) <= 1)
    cout << "Equal";
  else if (l > r)
    cout << "Dasha";
  else
    cout << "Masha";
  return 0;
}
