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