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