#include <bits/stdc++.h>
using namespace std;
const int N = 2e5;
int k, a[N];
char s[N];
int main() {
  int a, b, c, d;
  scanf("%d %d %d %d", &a, &b, &c, &d);
  int misha = max(float(3) / 10 * a, a - float(a) / 250 * c);
  int vasya = max(float(3) / 10 * b, b - float(b) / 250 * d);
  if (misha > vasya) {
    puts("Misha");
  } else if (misha == vasya) {
    puts("Tie");
  } else {
    puts("Vasya");
  }
  return 0;
}
