#include <bits/stdc++.h>
using namespace std;
int n, cnt1, cnt2;
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 1, a, b; i <= n; i++) {
    cin >> a >> b;
    if (a > b)
      cnt1++;
    else if (a < b)
      cnt2++;
  }
  if (cnt1 == cnt2)
    cout << "Friendship is magic!^^";
  else if (cnt1 > cnt2)
    cout << "Mishka";
  else
    cout << "Chris";
  return 0;
}
