#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int a1, a2;
  a1 = max(3 * (a / 10), a - ((a / 250) * c));
  a2 = max(3 * (b / 10), b - ((b / 250) * d));
  if (a1 > a2)
    cout << "Misha\n";
  else if (a2 > a1)
    cout << "Vasya\n";
  else
    cout << "Tie\n";
  return 0;
}
