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