#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int points = a;
  int misha = max(((3 * a) / 10), (a - ((a / 250) * c)));
  int points2 = b;
  int vasya = max((3 * b) / 10, b - (b / 250) * d);
  if (vasya > misha) {
    printf("Vasya");
  } else if (misha > vasya) {
    printf("Misha");
  } else if (misha == vasya) {
    printf("Tie");
  }
}
