#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  double p, q;
  if (c >= 175)
    p = a * 3.0 / 10;
  else
    p = a * 1.0 - ((a * c * 1.0) / 250);
  if (d >= 175)
    q = b * 3.0 / 10;
  else
    q = b * 1.0 - ((b * d * 1.0) / 250);
  if (abs(p - q) <= 1e-9)
    cout << "Tie";
  else if (p > q)
    cout << "Misha";
  else
    cout << "Vasya";
  return 0;
}
