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