#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  long long a;
  cin >> a;
  long long b;
  cin >> b;
  long long c;
  cin >> c;
  long long d;
  cin >> d;
  ;
  long long num1 = max(3 * a / 10, (a - (a * c) / 250));
  long long num2 = max(3 * b / 10, (b - (b * d) / 250));
  if (num1 > num2) {
    cout << "Misha"
         << "\n";
  } else if (num2 > num1) {
    cout << "Vasya"
         << "\n";
  } else {
    cout << "Tie"
         << "\n";
  }
  return 0;
}
