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