#include <bits/stdc++.h>
using namespace std;
int solve(int p, int t) {
  int x = 3 * p / 10;
  int y = p - (p / 250) * t;
  return max(x, y);
}
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int s1 = solve(a, c);
  int s2 = solve(b, d);
  if (s1 > s2)
    cout << "Misha";
  else if (s1 < s2)
    cout << "Vasya";
  else
    cout << "Tie";
  return 0;
}
