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