#include <bits/stdc++.h>   using namespace std;   int a, b, c, d;   void solve() {     double m = max((3.0) * a / (10.0), (double)(a - a * c / 250));     double v = max((3.0) * b / (10.0), (double)(b - b * d / 250));     if (m > v) cout <<  Misha  << endl;     if (m == v) cout <<  Tie  << endl;     if (m < v) cout <<  Vasya  << endl;   }   int main() {     while (cin >> a >> b >> c >> d) {       solve();     }     return 0;   }   