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