#include <bits/stdc++.h>
int max(int x, int y);
int main() {
  int a, b, c, d, ans, m1, m2, v1, v2, max1, max2, max3;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  m1 = (3 * a) / 10;
  v1 = (3 * b) / 10;
  m2 = a - ((a / 250) * c);
  v2 = b - ((b / 250) * d);
  max1 = max(m1, m2);
  max2 = max(v1, v2);
  if (max1 > max2)
    printf("Misha");
  else if (max2 > max1)
    printf("Vasya");
  else if (max1 == max2)
    printf("Tie");
  return 0;
}
int max(int x, int y) {
  if (x > y)
    return x;
  else
    return y;
}
