#include <bits/stdc++.h>
int r[26];
char l[1000000];
long long n[1000000];
using namespace std;
int main() {
  int a, b, c, d, e, f;
  cin >> a >> b >> c >> d;
  if ((3 * a) / 10 >= a - ((a) / 250) * c) {
    e = (3 * a) / 10;
  } else {
    e = a - ((a) / 250) * c;
  }
  if ((3 * b) / 10 >= b - ((b) / 250) * d) {
    f = (3 * b) / 10;
  } else {
    f = b - ((b) / 250) * d;
  }
  if (e > f) {
    cout << "Misha";
  } else if (e < f) {
    cout << "Vasya";
  } else
    cout << "Tie";
}
