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