#include <bits/stdc++.h>
using namespace std;
set<int> st;
set<int>::iterator it;
map<int, int> mp;
map<int, int>::iterator itr;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
  long long a, b, c, d, V, M;
  cin >> a >> b >> c >> d;
  M = max((3 * a / 10), (a - (a / 250) * c));
  V = max((3 * b / 10), (b - (b / 250) * d));
  if (V > M)
    cout << "Vasya" << endl;
  else if (V < M)
    cout << "Misha" << endl;
  else
    cout << "Tie" << endl;
  return 0;
}
