#include <bits/stdc++.h>
int main() {
  int a, b, n, c = 0, d = 0, i;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%d%d", &a, &b);
    if (a < b) {
      c++;
    } else if (a > b) {
      d++;
    }
  }
  if (c == d) {
    printf("Friendship is magic!^^");
  } else if (c > d) {
    printf("Chris");
  } else {
    printf("Mishka");
  }
  return 0;
}
