#include <bits/stdc++.h>
int main() {
  int a, b, c, d, pm, pv, t1, t2, t3, t4;
  scanf("%d%d%d%d", &a, &b, &c, &d);
  t1 = (3 * a) / 10;
  t2 = a - ((a / 250) * c);
  t3 = (3 * b) / 10;
  t4 = b - ((b / 250) * d);
  pm = (t1 > t2) ? t1 : t2;
  pv = (t3 > t4) ? t3 : t4;
  if (pm > pv)
    printf("Misha");
  else if (pm == pv)
    printf("Tie");
  else
    printf("Vasya");
  return 0;
}
