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