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