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