#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long a, b;
  cin >> a >> b;
  long long x1 = a, x2 = b, ans1 = 0, ans2 = 0;
  if (a < b)
    ans1 += a;
  else
    ans2 += b;
  while (x1 != x2) {
    if (x1 < x2) {
      if ((x1 + a) < x2)
        ans1 += a;
      else if ((x1 + a) == x2) {
        if (a < b)
          ans2 += a;
        else
          ans1 += a;
      } else
        ans2 += x2 - x1;
      x1 += a;
    } else {
      if ((x2 + b) < x1)
        ans2 += b;
      else if ((x2 + b) == x1) {
        if (a < b)
          ans2 += b;
        else
          ans1 += b;
      } else
        ans1 += x1 - x2;
      x2 += b;
    }
  }
  if (ans1 == ans2)
    cout << "Equal";
  else if (ans1 > ans2)
    cout << "Dasha";
  else
    cout << "Masha";
  return 0;
}
