#include <bits/stdc++.h>
using namespace std;
template <typename T>
void p(T val) {}
void solve();
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
    cout << "\n";
  }
  cerr << "time taken : " << (float)clock() / CLOCKS_PER_SEC << " secs" << endl;
  return 0;
}
void solve() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  int m = max(3 * a / 10, a - a * c / 250);
  int v = max(3 * b / 10, b - b * d / 250);
  string s;
  if (m > v)
    s = "Misha";
  else if (m == v)
    s = "Tie";
  else
    s = "Vasya";
  cout << s;
}
