#include <bits/stdc++.h>
using namespace std;
char buf[8];
int p, l;
inline void read(int &x) {
  x = 0;
  while (p == l) gets(buf), p = 0, l = strlen(buf);
  while (!isdigit(buf[p])) ++p;
  while (isdigit(buf[p])) x = (x << 3) + (x << 1) + (buf[p] ^ 48), ++p;
  while (p < l && !isdigit(buf[p])) ++p;
}
int n, m, c;
int main() {
  read(n);
  for (register int i = 0, mi, ci; i < n; ++i) {
    read(mi);
    read(ci);
    if (mi > ci) ++m;
    if (ci > mi) ++c;
  }
  puts(m > c ? "Mishka" : (c > m ? "Chris" : "Friendship is magic!^^"));
  return 0;
}
