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