#include <bits/stdc++.h>
using namespace std;
const int N = int(2e5 + 5);
const int INF = 1e9 + 7;
const long long inf = 1e18;
long long a, b, c, d;
long long calc(long long p, long long t) {
  return max(((3 * p) / 10), p - (p / 250) * t);
}
int main() {
  cin >> a >> b >> c >> d;
  long long cur1 = calc(a, c), cur2 = calc(b, d);
  long long mx = max(cur1, cur2);
  if (mx == cur1 && mx == cur2) {
    cout << "Tie\n";
    return 0;
  }
  if (mx == cur1) {
    cout << "Misha\n";
  } else {
    cout << "Vasya\n";
  }
  return 0;
}
