#include <bits/stdc++.h>
using namespace std;
int main() {
  int f_player = 0, s_player = 0, test;
  cin >> test;
  while (test--) {
    int x, y;
    cin >> x >> y;
    if (x > y)
      f_player += 1;
    else if (x < y)
      s_player += 1;
  }
  if (f_player == s_player)
    cout << "Friendship is magic!^^" << endl;
  else if (f_player > s_player)
    cout << "Mishka" << endl;
  else
    cout << "Chris" << endl;
  return 0;
}
