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