#include <bits/stdc++.h>
using namespace std;
const long long INF = 0x3f3f3f3f;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long test;
  test = 1;
  while (test--) {
    int a, b, c, d;
    cin >> a >> b >> c >> d;
    int misha = max((3 * a) / 10.0, a - (a * c) / 250.0);
    int vasya = max((3 * b) / 10.0, b - (b * d) / 250.0);
    if (misha == vasya) {
      cout << "Tie" << endl;
    } else if (misha > vasya) {
      cout << "Misha" << endl;
    } else if (misha < vasya) {
      cout << "Vasya" << endl;
    }
  }
  return 0;
}
