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