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