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