#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int mis = fmax(3 * a / 10, a - (a / 250) * c);
  int vas = fmax(3 * b / 10, b - (b / 250) * d);
  if (vas > mis)
    cout << "Vasya" << '\n';
  else if (mis > vas)
    cout << "Misha" << '\n';
  else
    cout << "Tie" << '\n';
}
