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