#include <bits/stdc++.h>
using namespace std;
double max(int p, int t) {
  return (3 * p / 10 > p - p / 250 * t ? 3 * p / 10 : p - p / 250 * t);
}
int main() {
  int a, b, c, d;
  scanf("%d%d%d%d", &a, &b, &c, &d);
  if (max(a, c) > max(b, d))
    printf("Misha\n");
  else if (max(a, c) < max(b, d))
    printf("Vasya\n");
  else
    printf("Tie\n");
}
