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