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