#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int misha = max((3 * a) / 10, a - (a / 250) * c),
      vasya = max((3 * b) / 10, b - (b / 250) * d);
  if (misha > vasya) {
    cout << "Misha";
  } else if (vasya > misha) {
    cout << "Vasya";
  } else {
    cout << "Tie";
  }
}
int main(void) {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cerr.tie(0);
  ;
  solve();
  return 0;
}
