#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using pi = pair<int, int>;
void setIO(string name = "") {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
int main() {
  setIO();
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int pv = max(3 * a / 10, a - a / 250 * c);
  int pm = max(3 * b / 10, b - b / 250 * d);
  if (pv == pm) {
    cout << "Tie";
  } else if (pv > pm) {
    cout << "Misha";
  } else {
    cout << "Vasya";
  }
  return 0;
}
