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