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