#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, v1, v2;
  cin >> a >> b >> c >> d;
  v1 = max(3 * (a / 10), a - (a / 250) * c);
  a = b, c = d;
  v2 = max(3 * (a / 10), a - (a / 250) * c);
  puts((v1 > v2) ? "Misha" : ((v1 < v2) ? "Vasya" : "Tie"));
}
