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