#include<bits/stdc++.h>
using namespace std;
int main(){
int t,a,b,c,d;
cin >> a >> b >> c >> d;
int sa1 = 3*a/10, sa2 = a-(a/250*c), sb1 = 3*b/10, sb2 = b-(b/250*d);
//cout << sa1 << " " << sa2 << " " << sb1 << " " << sb2;
if(max(sa1,sa2) > max(sb1,sb2)) cout << "Misha";
else if(max(sa1,sa2) < max(sb1,sb2)) cout << "Vasya";
else cout << "Tie";
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CglpbnQgdCxhLGIsYyxkOwoJY2luID4+IGEgPj4gYiA+PiBjID4+IGQ7CglpbnQgc2ExID0gMyphLzEwLCBzYTIgPSBhLShhLzI1MCpjKSwgc2IxID0gMypiLzEwLCBzYjIgPSBiLShiLzI1MCpkKTsKCS8vY291dCA8PCBzYTEgPDwgIiAiIDw8IHNhMiA8PCAiICIgPDwgc2IxIDw8ICIgIiA8PCBzYjI7CglpZihtYXgoc2ExLHNhMikgPiBtYXgoc2IxLHNiMikpCWNvdXQgPDwgIk1pc2hhIjsKCWVsc2UgaWYobWF4KHNhMSxzYTIpIDwgbWF4KHNiMSxzYjIpKQljb3V0IDw8ICJWYXN5YSI7CgllbHNlCWNvdXQgPDwgIlRpZSI7CglyZXR1cm4gMDsKfQ==