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