#include <bits/stdc++.h>
#pragma optimize("O3")
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e18 + 7;
const int base = 2e5 + 1;
const long long MAX = 1e6;
const double EPS = 1e-9;
const double PI = acos(-1.);
const int MAXN = 2 * 1e5 + 147;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int main() {
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  long long g = max((3 * a / 10), (a - (a / 250 * c)));
  long long h = max((3 * b / 10), (b - (b / 250 * d)));
  if (g == h) {
    cout << "Tie";
  } else if (g > h) {
    cout << "Misha" << '\n';
  } else {
    cout << "Vasya" << '\n';
  }
}
