#include <bits/stdc++.h>
using namespace std;
int max(int p, float t) {
  if (3 * p / 10 > (p - p / 250 * t))
    return 3 * p / 10;
  else
    return p - p / 250 * t;
}
int main() {
  int a, b;
  float c, d;
  cin >> a >> b >> c >> d;
  if (max(a, c) > max(b, d))
    cout << "Misha" << endl;
  else if (max(a, c) < max(b, d))
    cout << "Vasya" << endl;
  else
    cout << "Tie" << endl;
  return 0;
}
