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