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