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