#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int a1, b1;
  a1 = max(3 * a / 10, a - a * c / 250);
  b1 = max(3 * b / 10, b - b * d / 250);
  if (a1 > b1)
    cout << "Misha";
  else if (a1 < b1)
    cout << "Vasya";
  else
    cout << "Tie";
  exit(0);
}
