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