#include <bits/stdc++.h>
using namespace std;
const long long INF = 0x7f7f7f7f;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  long long mp = max((3 * a) / 10, (a - (a * c) / 250));
  long long vp = max((3 * b) / 10, (b - (b * d) / 250));
  if (mp > vp)
    cout << "Misha" << endl;
  else if (mp < vp)
    cout << "Vasya" << endl;
  else
    cout << "Tie" << endl;
  return 0;
}
