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