#include <bits/stdc++.h>
int max(int num1, int num2) {
  int result;
  if (num1 > num2)
    result = num1;
  else
    result = num2;
  return result;
}
int main() {
  int n, m, a, b, p, q, r, s;
  scanf("%d %d %d %d", &n, &m, &a, &b);
  p = (3 * n) / 10;
  q = (3 * m) / 10;
  r = (n - (n / 250) * a);
  s = (m - (m / 250) * b);
  p = max(p, r);
  q = max(q, s);
  if (p > q)
    printf("Misha\n");
  else if (q > p)
    printf("Vasya\n");
  else
    printf("Tie\n");
  return 0;
}
