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