#include <bits/stdc++.h>
using namespace std;
int points(int p, int t) {
  int x = 3 * p / 10;
  int y = p - ((p * t) / 250);
  return max(x, y);
}
int main() {
  int a, b, c, d, m, v;
  cin >> a >> b >> c >> d;
  m = points(a, c);
  v = points(b, d);
  if (m > v)
    cout << "Misha";
  else if (v > m)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
