#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, ans1 = 0, ans2 = 0;
  cin >> a >> b >> c >> d;
  int x = (3 * a) / 10;
  int y = a - ((a / 250) * c);
  if (x > y)
    ans1 = x;
  else
    ans1 = y;
  int x2 = (3 * b) / 10;
  int y2 = b - ((b / 250) * d);
  if (x2 > y2)
    ans2 = x2;
  else
    ans2 = y2;
  if (ans1 == ans2) cout << "Tie" << endl;
  if (ans1 > ans2) cout << "Misha" << endl;
  if (ans1 < ans2) cout << "Vasya" << endl;
  return 0;
}
