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