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