#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, x, y, x1, y1;
  cin >> a >> b >> c >> d;
  x = (3 * a) / 10;
  x1 = (a - (a / 250) * c);
  int m = max(x, x1);
  y = (3 * b) / 10;
  y1 = (b - (b / 250) * d);
  int m1 = max(y, y1);
  if (m < m1)
    cout << "Vasya" << endl;
  else if (m1 < m)
    cout << "Misha" << endl;
  else
    cout << "Tie" << endl;
}
