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