#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, t1, t2;
  scanf("%d%d%d%d", &a, &b, &t1, &t2);
  int sum1 = max(a * 3 / 10, a - (a / 250) * t1);
  int sum2 = max(b * 3 / 10, b - (b / 250) * t2);
  if (sum1 < sum2) {
    cout << "Vasya\n";
  } else if (sum1 > sum2) {
    cout << "Misha\n";
  } else
    cout << "Tie\n";
  return 0;
}
