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