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