#include <bits/stdc++.h>
using namespace std;
int howMany(long long int x) {
  int counter = 0;
  while (x > 10) {
    int a = x % 10;
    if (a == 7 || a == 4) counter++;
    x = x / 10;
  }
  if (x == 7 || x == 4) counter++;
  return counter;
}
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int vp = max(((3 * a) / 10), (a - (a / 250) * c));
  int mp = max(((3 * b) / 10), (b - (b / 250) * d));
  if (vp < mp)
    cout << "Vasya";
  else if (vp > mp)
    cout << "Misha";
  else
    cout << "Tie";
  return 0;
}
