#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  double x1 = (3 * a) / 10.0;
  double x2 = (3 * b) / 10.0;
  double y1 = (a - (a / 250.0) * c);
  double y2 = (b - (b / 250.0) * d);
  int m, v;
  m = max(x1, y1);
  v = max(x2, y2);
  if (m > v)
    cout << "Misha" << endl;
  else if (v > m)
    cout << "Vasya" << endl;
  else
    cout << "Tie" << endl;
  return 0;
}
