#include <bits/stdc++.h>
using namespace std;
vector<int> v1;
pair<int, int> p1;
int a[100001];
char s[100001];
int main() {
  std::ios_base::sync_with_stdio(false);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int p = (3 * a) / 10;
  int q = (a - a * c / 250);
  if (q > p) p = q;
  int r = (3 * b) / 10;
  q = (b - b * d / 250);
  if (r > q) q = r;
  if (p > q)
    cout << "Misha" << endl;
  else if (q > p)
    cout << "Vasya" << endl;
  else
    cout << "Tie" << endl;
  return 0;
}
