#include <bits/stdc++.h>
using namespace std;
typedef struct node* nd;
long long mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  ;
  double ans1 = max((double)(3 * a) / (double)10,
                    (double)((double)a - (double)(a * c) / (double)250));
  double ans2 = max((double)(3 * b) / (double)10,
                    (double)((double)b - (double)(b * d) / (double)250));
  if (ans1 > ans2) {
    cout << "Misha";
  } else if (ans2 > ans1) {
    cout << "Vasya";
  } else {
    cout << "Tie";
  }
  cout << "\n";
  return 0;
}
