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