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