#include <bits/stdc++.h>
using namespace std;
long long go(long long a, long long c) {
  long long sum1 = (3 * a) / 10;
  long long sum2 = a - ((a / 250) * c);
  return max(sum1, sum2);
}
void solve() {
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  long long one = go(a, c);
  long long two = go(b, d);
  if (one == two)
    cout << "Tie\n";
  else if (one > two)
    cout << "Misha\n";
  else
    cout << "Vasya\n";
}
signed main() {
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
