#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  (max(3 * a / 10, a - a / 250 * c) > max(3 * b / 10, b - b / 250 * d))
      ? cout << "Misha"
  : (max(3 * a / 10, a - a / 250 * c) == max(3 * b / 10, b - b / 250 * d))
      ? cout << "Tie"
      : cout << "Vasya";
  return 0;
}
