#include <bits/stdc++.h>
using namespace std;
int main() {
  long double m, n, c = 0, k = 0, a = 0, b = 0, d;
  cin >> m >> n >> c >> d;
  long double s1, s2, x, y;
  a = (3 * m) / 10;
  b = m - (m / 250) * c;
  x = (3 * n) / 10;
  y = n - (n / 250) * d;
  s1 = max(a, b);
  s2 = max(x, y);
  if (s1 > s2)
    cout << "Misha" << endl;
  else if (s1 < s2)
    cout << "Vasya" << endl;
  else
    cout << "Tie" << endl;
}
