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