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