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