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