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