#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, l, n, s1, s2;
  cin >> i >> j >> l >> n;
  s1 = max(i - ((i / 250) * l), (3 * i / 10));
  s2 = max(j - ((j / 250) * n), (3 * j / 10));
  if (s1 > s2)
    puts("Misha");
  else if (s1 < s2)
    puts("Vasya");
  else
    puts("Tie");
  return 0;
}
