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