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