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