#include <bits/stdc++.h>   using namespace std;   int m[26];   int main() {     float a, c, d, b;     cin >> a >> b >> c >> d;     float sa = max((3 * a) / 10.0, a - (a / 250.0) * c);     float sb = max((3 * b) / 10.0, b - (b / 250.0) * d);     if (sa > sb)       cout <<  Misha ;     else if (sb > sa)       cout <<  Vasya ;     else       cout <<  Tie ;     return 0;   }   