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