#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e4 + 10;
const int maxm = 500 * 500 + 10;
const int inf = 1e9;
const int mod = 1e9 + 7;
int getint() {
  char c;
  while ((c = getchar()) && !(c >= '0' && c <= '9') && c != '-')
    ;
  int ret = c - '0', sgn = 0;
  if (c == '-') sgn = 1, ret = 0;
  while ((c = getchar()) && c >= '0' && c <= '9') ret = ret * 10 + c - '0';
  if (sgn) ret = -ret;
  return ret;
}
int main() {
  int a = getint(), b = getint(), c = getint(), d = getint();
  int x = max(3 * a / 10, a - a / 250 * c);
  int y = max(3 * b / 10, b - b / 250 * d);
  if (x > y)
    puts("Misha");
  else if (x < y)
    puts("Vasya");
  else
    puts("Tie");
  return 0;
}
