#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, p, q;
  cin >> n >> m >> p >> q;
  int x = 0, y = 0, a = 0, b = 0;
  x = (n * 3 / 10);
  y = (n - ((n / 250) * p));
  a = (m * 3 / 10);
  b = (m - ((m / 250) * q));
  if (max(x, y) == max(a, b)) {
    cout << "Tie" << endl;
  } else if (max(x, y) > max(a, b)) {
    cout << "Misha" << endl;
  } else {
    cout << "Vasya" << endl;
  }
}
