#include <bits/stdc++.h>
template <typename T>
T min(T x, T y) {
  return x < y ? x : y;
}
template <typename T>
T max(T x, T y) {
  return x > y ? x : y;
}
template <typename T>
T abs(T x) {
  return x > 0 ? x : -x;
}
int main() {
  double a, b, c, d, v, m;
  while (~scanf("%lf %lf %lf %lf", &a, &b, &c, &d)) {
    m = max(3.0 * a / 10.0, a - a * c / 250.0);
    v = max(3.0 * b / 10.0, b - b * d / 250.0);
    if (v > m)
      printf("Vasya\n");
    else if (v < m)
      printf("Misha\n");
    else
      printf("Tie\n");
  }
}
