#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  double m = max((3 * a / 10), (a - (a / 250) * c));
  double v = max((3 * b / 10), (b - (b / 250) * d));
  if (m > v)
    cout << "Misha";
  else if (m < v)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
