#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 250;
long long mod = 1e9 + 7;
const int N = 100005;
int main() {
  int n;
  cin >> n;
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    if (x > y) ans++;
    if (x < y) ans--;
  }
  if (ans == 0) {
    puts("Friendship is magic!^^");
  } else {
    puts(ans > 0 ? "Mishka" : "Chris");
  }
  return 0;
}
