#include <bits/stdc++.h>
using namespace std;
int main() {
  int A[2][2];
  cin >> A[0][0] >> A[1][0] >> A[0][1] >> A[1][1];
  for (int i = 0; i < 2; ++i)
    A[i][0] = max(3 * A[i][0] / 10, A[i][0] - A[i][0] * A[i][1] / 250);
  if (A[0][0] > A[1][0])
    cout << "Misha";
  else if (A[0][0] < A[1][0])
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
