#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  int mc = 0, cc = 0;
  for (int i = 0; i <= (n - 1); i++) {
    int m1, c1;
    scanf("%d", &m1);
    scanf("%d", &c1);
    if (m1 > c1)
      mc++;
    else if (c1 > m1)
      cc++;
  }
  if (mc > cc)
    cout << "Mishka" << endl;
  else if (cc > mc)
    cout << "Chris" << endl;
  else
    cout << "Friendship is magic!^^" << endl;
  return 0;
}
