#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int mp = a;
  int mt = c;
  int vp = b;
  int vt = d;
  int p = mp;
  int t = mt;
  int mr = max((3 * p) / 10, p - ((p / 250) * t));
  p = vp;
  t = vt;
  int vr = max((3 * p) / 10, p - ((p / 250) * t));
  if (mr > vr)
    cout << "Misha";
  else if (mr < vr)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
