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