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