#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m, i, j, misha, vasya;
  float x;
  long long int ct = 1, maxct = 0;
  string s, ss;
  cin >> n >> m >> i >> j;
  misha = max(3 * n / 10, n - n * i / 250);
  vasya = max(3 * m / 10, m - m * j / 250);
  if (misha > vasya)
    cout << "Misha";
  else if (misha == vasya)
    cout << "Tie";
  else
    cout << "Vasya";
}
