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