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