#include <bits/stdc++.h>
using namespace std;
int main() {
  int point1, point2, time1, time2;
  while (cin >> point1 >> point2 >> time1 >> time2) {
    int a = max(3 * point1 / 10, point1 - point1 / 250 * time1);
    int b = max(3 * point2 / 10, point2 - point2 / 250 * time2);
    if (a == b)
      cout << "Tie" << endl;
    else if (a > b)
      cout << "Misha" << endl;
    else if (a < b)
      cout << "Vasya" << endl;
  }
}
