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