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