#include <bits/stdc++.h>
using namespace std;
double maxoo(double, double);
int main() {
  int p1, p2, t1, t2;
  cin >> p1 >> p2 >> t1 >> t2;
  double p11, p12, p21, p22, misha, vasya;
  p11 = (3 * p1) / 10;
  p12 = (p1 - (p1 / 250) * t1);
  p21 = (3 * p2) / 10;
  p22 = p2 - (p2 / 250) * t2;
  misha = maxoo(p11, p12);
  vasya = maxoo(p21, p22);
  if (misha > vasya)
    cout << "Misha";
  else if (misha == vasya)
    cout << "Tie";
  else if (misha < vasya)
    cout << "Vasya";
  return 0;
}
double maxoo(double m, double n) {
  if (m >= n)
    return m;
  else
    return n;
}
