#include <bits/stdc++.h>
using namespace std;
int main() {
  string winner[] = {"Misha", "Vasya", "Tie"};
  int a, b, c, d, f, g, n, m, v;
  cin >> a >> b >> c >> d;
  f = a - (a / 250) * c;
  n = ((3 * a) / 10);
  m = ((3 * b) / 10);
  g = b - (b / 250) * d;
  if ((n > m && n > g) || (f > m && f > g))
    cout << winner[0];
  else if ((m > f && m > n) || (g > f && g > n))
    cout << winner[1];
  else
    cout << winner[2];
  return 0;
}
