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