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