#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, min, t, k, max, j, c, gg, nac, kon, x, y, z;
  string b;
  int d;
  vector<int> a;
  vector<int> as, asd;
  string s, otv;
  gg = 0;
  cin >> n;
  c = 0;
  a.push_back(0);
  a.push_back(0);
  for (i = 0; i < n; i++) {
    cin >> t >> k;
    if (t > k)
      a[0] = a[0] + 1;
    else if (k > t)
      a[1] = a[1] + 1;
  }
  if (a[0] > a[1])
    cout << "Mishka";
  else if (a[1] > a[0])
    cout << "Chris";
  else
    cout << "Friendship is magic!^^";
  return 0;
}
