给定n场游戏,每场游戏点数大的获胜,获胜场数大的人获胜
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <map>
#include <stack>
#include <queue>
#include <string.h>
#include <string>
#include <iomanip>
#include <cstring>
#include <vector>
#include <functional>
#include <cmath>
#include <sstream>
#include<complex>
#include <set>
//#include<bits/stdc++.h>
using namespace std;
#define sp system("pause")
typedef long long ll;
typedef unsigned long long ull;
const ll mod = 1000000007;
#define PI acos(-1.0)
#define eps 1e-6
int main()
{
int n;
cin >> n;
int a = 0, b = 0;
for (int i = 0; i < n; i++)
{
int x, y;
scanf("%d%d", &x, &y);
if (x>y)a++;
else if (y > x)b++;
}
if (a > b)puts("Mishka");
else if (a == b)puts("Friendship is magic!^^");
else puts("Chris");
}