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