#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1000000007;
const double PI = 3.14159265358979323846;
const int INF = 1e+9;
long long int gcd(long long int a, long long int b) {
  if (a < b) swap(a, b);
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int a, b;
  cin >> a >> b;
  long long int lcm = (long long)(a * b) / gcd(a, b);
  long long int n_a = (lcm / a) - 1;
  long long int n_b = (lcm / b) - 1;
  if (a > b)
    n_a++;
  else
    n_b++;
  if (n_a > n_b)
    cout << "Dasha\n";
  else if (n_b > n_a)
    cout << "Masha\n";
  else
    cout << "Equal\n";
}
