#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int n, m, i, j, k, q, s, w, v, ans;
int main() {
  double a, b, c, d;
  cin >> a >> b >> c >> d;
  k = max(3 * a / 10, a - a * c / 250);
  q = max(3 * b / 10, b - b * d / 250);
  if (k > q) cout << "Misha" << endl;
  if (q > k) cout << "Vasya" << endl;
  if (q == k) cout << "Tie" << endl;
  return 0;
}
