#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int T, n, i, j, l, m, x, y, z, a, b, c, d, flag, count;
  cin >> a >> b >> c >> d;
  long long int sum1, sum2;
  sum1 = std::max((3 * a / 10), (a - ((a / 250) * c)));
  sum2 = std::max((3 * b / 10), (b - ((b / 250) * d)));
  if (sum1 > sum2)
    cout << "Misha" << endl;
  else if (sum1 < sum2)
    cout << "Vasya" << endl;
  else
    cout << "Tie" << endl;
  return 0;
}
