Misha and Vasya participated in a Codeforces contest. Unfortunately, each of them solved only one problem, though successfully submitted it at the first attempt. Misha solved the problem that costs *a* points and Vasya solved the problem that costs *b* points. Besides, Misha submitted the problem *c* minutes after the contest started and Vasya submitted the problem *d* minutes after the contest started. As you know, on Codeforces the cost of a problem reduces as a round continues. That is, if you submit a problem that costs *p* points *t* minutes after the contest started, you get <img align="middle" class="tex-formula" src="https://espresso.codeforces.com/e7bb7983e9c15baf66651c7643406c249354c8c1.png" style="max-width: 100.0%;max-height: 100.0%;"/> points. 

Misha and Vasya are having an argument trying to find out who got more points. Help them to find out the truth.
The first line contains four integers *a*, *b*, *c*, *d* (250 ≤ *a*, *b* ≤ 3500, 0 ≤ *c*, *d* ≤ 180). 

It is guaranteed that numbers *a* and *b* are divisible by 250 (just like on any real Codeforces round).
u_input = input()

a, b, c, d = u_input.split(" ")

misha_n1 = (3 * int(a) / 10)
misha_n2 = int(a) - ((int(a) / 250) * int(d))

misha = [misha_n1, misha_n2]
misha_sorted = sorted(misha, reverse=True)

vasya_n1 = (3 * int(b) / 10)
vasya_n2 = int(b) - ((int(b) / 250) * int(d))


vasya = [vasya_n1, vasya_n2]

vasya_sorted = sorted(vasya, reverse=True)

if vasya_sorted[0] > misha_sorted[0]:
    print("Vasya")

elif vasya_sorted[0] < misha_sorted[0]:
    print("Misha")

elif vasya_sorted[0] == misha_sorted[0]:
    print("Tie")

 		   	 						  	 		  	   	