#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  ios_base ::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int ans1 = max(3 * a / 10, a - (a / 250) * c);
  int ans2 = max(3 * b / 10, b - (b / 250) * d);
  if (ans1 > ans2)
    cout << "Misha";
  else if (ans2 > ans1)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
