#include <bits/stdc++.h>
using namespace std;
int main() {
  int pa, pb, ta, tb;
  cin >> pa >> pb >> ta >> tb;
  int ms = max(3 * pa / 10, pa - pa / 250 * ta);
  int vs = max(3 * pb / 10, pb - pb / 250 * tb);
  if (ms > vs)
    cout << "Misha" << endl;
  else if (ms < vs)
    cout << "Vasya" << endl;
  else
    cout << "Tie\n";
  return 0;
}
