#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ii = pair<int, int>;
using vb = vector<bool>;
using vi = vector<int>;
using vii = vector<ii>;
using ii = pair<int, int>;
using vll = vector<ll>;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  ld a, b, c, d;
  cin >> a >> b >> c >> d;
  ld misha = max(3 * a / 10, a - a / 250 * c);
  ld vasya = max(3 * b / 10, b - b / 250 * d);
  if (misha > vasya) {
    cout << "Misha";
  } else if (vasya > misha) {
    cout << "Vasya";
  } else {
    cout << "Tie";
  }
}
