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