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