#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, i;
  double m, v;
  cin >> a >> b >> c >> d;
  m = max(3.0 * a / 10, a - (a * c / 250.0));
  v = max(3.0 * b / 10, b - (b * d / 250.0));
  if (m == v)
    cout << "Tie";
  else if (m > v)
    cout << "Misha";
  else if (m < v)
    cout << "Vasya";
  return 0;
}
