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