#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long p1, p2, t1, t2;
  cin >> p1 >> p2 >> t1 >> t2;
  long long first =
      (((3 * p1 / 10)) > (p1 - (p1 / 250 * t1)) ? ((3 * p1 / 10))
                                                : (p1 - (p1 / 250 * t1)));
  long long second =
      (((3 * p2 / 10)) > (p2 - (p2 / 250 * t2)) ? ((3 * p2 / 10))
                                                : (p2 - (p2 / 250 * t2)));
  if (first > second) {
    cout << "Misha";
  } else if (second > first) {
    cout << "Vasya";
  } else {
    cout << "Tie";
  }
  return 0;
}
