#include <bits/stdc++.h>
using namespace std;
int main() {
  int m, v, mt, vt;
  cin >> m >> v >> mt >> vt;
  m = m = max(3 * m / 10, m - mt * m / 250);
  ;
  v = v = max(3 * v / 10, v - vt * v / 250);
  ;
  if (m == v) cout << "Tie";
  if (m > v) cout << "Misha";
  if (m < v) cout << "Vasya";
  return 0;
}
