#include <bits/stdc++.h>
using namespace std;
int solve() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int m, v;
  m = max((3 * a) / 10, a - a / 250 * c);
  v = max((3 * b) / 10, b - b / 250 * d);
  if (m == v)
    puts("Tie");
  else if (m > v)
    puts("Misha");
  else
    puts("Vasya");
  return 0;
}
int main() { solve(); }
