#include <bits/stdc++.h>
using namespace std;
int main() {
  long a, b, c, d;
  cin >> a >> b >> c >> d;
  long mi1, mi2;
  mi1 = (3 * a) / 10;
  mi2 = a - ((a / 250) * c);
  long mimx = mi1;
  if (mi1 < mi2) mimx = mi2;
  long va1, va2;
  va1 = (3 * b) / 10;
  va2 = b - ((b / 250) * d);
  long vamx = va1;
  if (va1 < va2) vamx = va2;
  if (vamx > mimx) cout << "Vasya";
  if (vamx < mimx) cout << "Misha";
  if (vamx == mimx) cout << "Tie";
  return 0;
}
