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