#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int p1, p2, t1, t2;
  cin >> p1 >> p2 >> t1 >> t2;
  int misha = max(3 * p1 / 10, p1 - (p1 / 250) * t1);
  int vasya = max(3 * p2 / 10, p2 - (p2 / 250) * t2);
  if (misha == vasya)
    cout << "Tie";
  else if (misha > vasya)
    cout << "Misha";
  else
    cout << "Vasya";
  return 0;
}
