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