#include <bits/stdc++.h>
using namespace std;
long long mn = 1e18;
long long mx = -1e18;
int main() {
  ios_base::sync_with_stdio(NULL);
  cin.tie(NULL);
  cout.tie(NULL);
  long long a, b, c, d, e = 0, f = 0;
  cin >> a >> b >> c >> d;
  e = max(3 * a / 10, a - a / 250 * c);
  f = max(3 * b / 10, b - b / 250 * d);
  if (e > f) {
    cout << "Misha";
  } else if (e < f) {
    cout << "Vasya";
  } else
    cout << "Tie";
}
