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