#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  ;
  long long int a, b, c, d, x, y;
  cin >> a >> b >> c >> d;
  x = max(((3 * a) / 10), (a - ((a) / (250)) * c));
  y = max(((3 * b) / 10), (b - ((b) / 250) * d));
  if (x == y)
    cout << "Tie" << endl;
  else if (x > y ? cout << "Misha" : cout << "Vasya")
    ;
}
