#include <bits/stdc++.h>
using namespace std;
inline void readint(int &x) {
  register int c = getchar();
  x = 0;
  int neg = 0;
  for (; ((c < 48 || c > 57) && c != '-'); c = getchar())
    ;
  if (c == '-') {
    neg = 1;
    c = getchar();
  }
  for (; c > 47 && c < 58; c = getchar()) {
    x = (x << 1) + (x << 3) + c - 48;
  }
  if (neg) x = -x;
}
int compare(const void *a, const void *b) { return (*(int *)a - *(int *)b); }
int main() {
  register unsigned int ans1, ans2;
  int a, b, c, d;
  readint(a);
  readint(b);
  readint(c);
  readint(d);
  ans1 = max(3 * a / 10, a - a / 250 * c);
  ans2 = max(3 * b / 10, b - b / 250 * d);
  if (ans1 > ans2)
    printf("Misha");
  else if (ans1 < ans2)
    printf("Vasya");
  else
    printf("Tie");
  return 0;
}
