#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int main() {
  int a, b, c, d, mxm, mxv;
  cin >> a >> b >> c >> d;
  mxm = max((3 * a) / 10, a - (a / 250) * c);
  mxv = max((3 * b) / 10, b - (b / 250) * d);
  if (mxm > mxv)
    cout << "Misha";
  else if (mxm < mxv)
    cout << "Vasya";
  else if (mxm == mxv)
    cout << "Tie";
  return 0;
}
