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