#include <bits/stdc++.h>
using namespace std;
string tostr(int n) {
  stringstream assa;
  assa << n;
  return assa.str();
}
const int mod = 1e9 + 7;
const long double eps = 1e-9;
long long modula(long long n, long long k) {
  long long res = 1;
  while (k) {
    if (k & 1) res = (res * n) % mod;
    n = (n * n) % mod;
    k >>= 1;
  }
  return res;
}
long long a, b, c, d;
long long fun(double ok1, double ok2) {
  return max(3.0 * ok1 / 10.0, ok1 - ok1 * ok2 / 250.0);
}
int main() {
  scanf("%lld", &a);
  scanf("%lld", &b);
  scanf("%lld", &c);
  scanf("%lld", &d);
  long long mi = fun(a, c), va = fun(b, d);
  if (mi == va)
    cout << "Tie\n";
  else if (mi > va)
    cout << "Misha\n";
  else
    cout << "Vasya\n";
  return 0;
}
