#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, i, j, k, l, m, n, p, q, t,
      ct = 0, ct1 = 0, ct2 = 0, ck = 0, ck1 = 0, ck2 = 0, ln, ln1, start, end,
      mid;
  long long int a1 = 0, a2 = 0, a3 = 0, a4 = 0, sum = 0, sum1 = 0, max1, max2,
                min1, min2;
  double x, y, z;
  char ch, ch1, ch2;
  cin >> a >> b >> c >> d;
  m = (3 * a) / 10;
  n = (3 * b) / 10;
  p = a - (a / 250) * c;
  q = b - (b / 250) * d;
  i = max(m, p);
  j = max(n, q);
  if (i < j) {
    cout << "Vasya";
  } else if (i == j) {
    cout << "Tie";
  } else if (j < i) {
    cout << "Misha";
  }
  return 0;
}
