#include <bits/stdc++.h>
using namespace std;
int get(int x, int y) { return max(x * 3 / 10, x - x / 250 * y); }
int main() {
  int A, B, C, D;
  cin >> A >> B >> C >> D;
  int a = get(A, C);
  int b = get(B, D);
  cout << (a == b ? "Tie" : a > b ? "Misha" : "Vasya") << endl;
  return 0;
}
