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