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