#include <bits/stdc++.h>
using namespace std;
long long n, s, i, x, y;
int main() {
  cin >> n;
  s = 0;
  for (i = 1; i <= n; i++) {
    cin >> x >> y;
    if (x > y)
      s++;
    else if (x < y)
      s--;
  }
  if (s == 0)
    cout << "Friendship is magic!^^\n";
  else if (s < 0)
    cout << "Chris\n";
  else
    cout << "Mishka\n";
  return 0;
}
