#include <bits/stdc++.h>
using namespace std;
int x, y, t1, t2, cnt1, cnt2;
int cnt(int a, int b) { return max(a * 3 / 10, a - a * b / 250); }
int main() {
  scanf("%d", &x);
  scanf("%d", &y);
  scanf("%d", &t1);
  scanf("%d", &t2);
  cnt1 = cnt(x, t1);
  cnt2 = cnt(y, t2);
  if (cnt1 > cnt2) cout << "Misha" << endl;
  if (cnt1 < cnt2) cout << "Vasya" << endl;
  if (cnt1 == cnt2) cout << "Tie" << endl;
  return 0;
}
