#include <bits/stdc++.h>
float max(float a, float b) { return a > b ? a : b; }
void solve() {
  float a, b, c, d;
  scanf("%f %f %f %f", &a, &b, &c, &d);
  float A = max((3 * a) / 10.0, a - (a / 250.0) * c);
  float B = max((3 * b) / 10.0, b - (b / 250.0) * d);
  puts(A > B ? "Misha" : A < B ? "Vasya" : "Tie");
}
int main() { solve(); }
