CF501A.Contest

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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 aa points and Vasya solved the problem that costs bb points. Besides, Misha submitted the problem cc minutes after the contest started and Vasya submitted the problem dd 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 pp points tt minutes after the contest started, you get 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 aa , bb , cc , dd ( 250<=a,b<=3500250<=a,b<=3500 , 0<=c,d<=1800<=c,d<=180 ).

It is guaranteed that numbers aa and bb are divisible by 250250 (just like on any real Codeforces round).

输出格式

Output on a single line:

"Misha" (without the quotes), if Misha got more points than Vasya.

"Vasya" (without the quotes), if Vasya got more points than Misha.

"Tie" (without the quotes), if both of them got the same number of points.

输入输出样例

  • 输入#1

    500 1000 20 30
    

    输出#1

    Vasya
    
  • 输入#2

    1000 1000 1 1
    

    输出#2

    Tie
    
  • 输入#3

    1500 1000 176 177
    

    输出#3

    Misha
    
首页