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