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