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