#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  long long x, y;
  x = max(3 * a / 10, a - (a / 250 * c));
  y = max(3 * b / 10, b - (b / 250 * d));
  if (x > y)
    cout << "Misha";
  else if (x < y)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
