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