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