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