#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int const N = 200 * 1000 + 16;
int const M = 1000 * 1000 * 1000 + 7;
int main() {
  cin.tie(0);
  cin.sync_with_stdio(0);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  auto f = [](int p, int t) { return max(0.3 * p, p - p / 250.0 * t); };
  char *w[] = {"Vasya", "Misha"};
  auto x = f(a, c);
  auto y = f(b, d);
  if (fabs(x - y) < 1e-9)
    cout << "Tie";
  else
    cout << w[x > y];
}
