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