1def get(p, t):2 return max(3 * p / 10, p - p * t / 250)3 4a, b, c, d = map(int, input().split())5 6pm = get(a, c)7pv = get(b, d)8 9if pm > pv:10 print('Misha')11elif pm < pv:12 print('Vasya')13else:14 print('Tie')15