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