#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, max1 = 0, max2 = 0, max11 = 0, max22 = 0;
  cin >> a >> b >> c >> d;
  max1 = 3 * a / 10;
  max11 = a - (a / 250 * c);
  if (max1 > max11) {
    max1 = max1;
  } else {
    max1 = max11;
  }
  max2 = 3 * b / 10;
  max22 = b - (b / 250 * d);
  if (max2 > max22) {
    max2 = max2;
  } else {
    max2 = max22;
  }
  if (max1 < max2) {
    cout << "Vasya" << endl;
  } else if (max1 == max2) {
    cout << "Tie" << endl;
  } else {
    cout << "Misha" << endl;
  }
  return 0;
}
