#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  int a, b, c, d, Misha, Vasya;
  scanf("%d%d%d%d", &a, &b, &c, &d);
  Misha = ((3 * a / 10) > (a - a / 250 * c) ? (3 * a / 10) : (a - a / 250 * c));
  Vasya = ((3 * b / 10) > (b - b / 250 * d) ? (3 * b / 10) : (b - b / 250 * d));
  if (Misha == Vasya) {
    printf("Tie\n");
  } else if (Vasya > Misha) {
    printf("Vasya\n");
  } else {
    printf("Misha\n");
  }
  return EXIT_SUCCESS;
}
