#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(0);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  long long int ans, ans1;
  ans = max((3 * a) / 10, a - ((a / 250) * c));
  ans1 = max((3 * b) / 10, b - ((b / 250) * d));
  if (ans > ans1) {
    cout << "Misha";
  } else if (ans1 > ans) {
    cout << "Vasya";
  } else {
    cout << "Tie";
  }
  return 0;
}
