#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, result1, result2;
  cin >> a >> b >> c >> d;
  result1 = (((3 * a) / 10) > (a - ((a * c) / 250)) ? ((3 * a) / 10)
                                                    : (a - ((a * c) / 250)));
  result2 = (((3 * b) / 10) > (b - ((b * d) / 250)) ? ((3 * b) / 10)
                                                    : (b - ((b * d) / 250)));
  if (result1 > result2)
    cout << "Misha";
  else if (result1 < result2)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
