#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  c = 250 - c;
  d = 250 - d;
  long long pa1 = 3 * a / 10;
  long long pa2 = c * a / 250;
  long long pa;
  if (pa1 > pa2)
    pa = pa1;
  else
    pa = pa2;
  long long pb1 = 3 * b / 10;
  long long pb2 = d * b / 250;
  long long push_back;
  if (pb1 > pb2)
    push_back = pb1;
  else
    push_back = pb2;
  if (pa > push_back) {
    cout << "Misha";
  } else if (pa < push_back) {
    cout << "Vasya";
  } else {
    cout << "Tie";
  }
  return 0;
}
