#include <bits/stdc++.h>
using namespace std;
const int oo = (int)1e9;
const double PI = 2 * acos(0.0);
const double eps = 1e-9;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int foo = max(3 * a / 10, a - a / 250 * c);
  int bar = max(3 * b / 10, b - b / 250 * d);
  if (foo == bar)
    cout << "Tie" << endl;
  else if (foo > bar)
    cout << "Misha" << endl;
  else
    cout << "Vasya" << endl;
  return 0;
}
