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