#include <bits/stdc++.h>
using namespace std;
int points(int p, int t) {
  int first = 75 * p;
  int second = 250 * p - p * t;
  return max(first, second);
}
int main() {
  int a, b, c, d;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  int misha = points(a, c);
  int vasia = points(b, d);
  if (misha > vasia) {
    cout << "Misha" << endl;
  } else if (vasia > misha) {
    cout << "Vasya" << endl;
  } else {
    cout << "Tie" << endl;
  }
  return 0;
}
