#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, rus = 0, rus1 = 0;
  cin >> a >> b >> c >> d;
  int sum = 0, sum2 = 0, sum3 = 0, sum4 = 0;
  sum = (3 * a) / 10;
  sum2 = a - (a / 250) * c;
  sum3 = (3 * b) / 10;
  sum4 = b - (b / 250) * d;
  rus = max(sum, sum2);
  rus1 = max(sum3, sum4);
  if (rus > rus1) {
    cout << "Misha" << endl;
  } else if (rus < rus1) {
    cout << "Vasya" << endl;
  } else
    cout << "Tie" << endl;
  return 0;
}
