#include <bits/stdc++.h>
using namespace std;
int max(int a, int b) { return a > b ? a : b; }
int f(int p, int t) { return max(3 * p / 10, p - t * p / 250); }
int main(int argc, char *argv[]) {
  int a, b, c, d;
  cin >> a;
  cin >> b;
  cin >> c;
  cin >> d;
  int z = f(a, c);
  int y = f(b, d);
  if (z > y) {
    cout << "Misha" << endl;
  } else if (y > z) {
    cout << "Vasya" << endl;
  } else {
    cout << "Tie" << endl;
  }
  return 0;
}
