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