#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, c, d;
  cin >> a >> b >> c >> d;
  double x1, y1, x2, y2;
  x1 = (a * 3.0) / 10;
  x2 = (a - (a / 250) * c);
  if (x1 < x2) x1 = x2;
  y1 = (b * 3.0) / 10;
  y2 = (b - (b / 250) * d);
  if (y1 < y2) y1 = y2;
  if (x1 > y1)
    cout << "Misha";
  else if (x1 < y1)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
