#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, d = 0, d1 = 0;
  cin >> n;
  while (n--) {
    int a, b;
    cin >> a >> b;
    if (a > b) d++;
    if (a < b) d1++;
  }
  if (d == d1)
    cout << "Friendship is magic!^^";
  else
    cout << (d > d1 ? "Mishka" : "Chris");
}
