#include <bits/stdc++.h>
using namespace std;
int m, c, pc = 0, pm = 0, n;
char der;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> m >> c;
    if (m > c)
      pm++;
    else if (m < c)
      pc++;
  }
  if (pm > pc)
    cout << "Mishka";
  else if (pm < pc)
    cout << "Chris";
  else
    cout << "Friendship is magic!^^";
}
