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