#include <bits/stdc++.h>
using namespace std;
void solve() {}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  long long x, y;
  x = max(3 * a / 10, a - a / 250 * c);
  y = max(3 * b / 10, b - b / 250 * d);
  if (x == y) {
    cout << "Tie\n";
  } else if (x > y) {
    cout << "Misha\n";
  } else {
    cout << "Vasya\n";
  }
}
