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