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