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