#include <bits/stdc++.h>
using namespace std;
int n, num;
const int N = 2e3 + 20;
int a, b, p0, p1;
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  cin >> a >> b >> p0 >> p1;
  if (max((3 * a) / 10, a - (a / 250) * p0) <
      max((3 * b) / 10, b - (b / 250) * p1))
    cout << "Vasya";
  if (max((3 * a) / 10, a - (a / 250) * p0) ==
      max((3 * b) / 10, b - (b / 250) * p1))
    cout << "Tie";
  if (max((3 * a) / 10, a - (a / 250) * p0) >
      max((3 * b) / 10, b - (b / 250) * p1))
    cout << "Misha";
}
