#include <bits/stdc++.h>
using namespace std;
void solveCP311() {
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  long long x = max((3 * a) / 10, a - ((a * c) / 250));
  long long y = max((3 * b) / 10, b - ((b * d) / 250));
  if (x > y) {
    cout << "Misha";
  } else if (y > x) {
    cout << "Vasya";
  } else {
    cout << "Tie";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t = 1;
  while (t--) {
    solveCP311();
  }
  return 0;
}
