1. 程式人生 > >Codeforces 703A Mishka and Game

Codeforces 703A Mishka and Game

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>

using namespace std;



int main() {
	int n;
	scanf("%d", &n);
	int big = 0;
	int small = 0;
	int equ = 0;
	for (int i = 1;i <= n;++i) {
		int a, b;
		scanf("%d %d", &a, &b);
		if (a > b) {
			big++;
		}
		else if (a == b) {
			equ++;
		}
		else {
			small++;
		}
	}
	if (big > small) {
		printf("Mishka\n");
	}
	else if (big == small) {
		printf("Friendship is magic!^^\n");
	}
	else {
		printf("Chris\n");
	}
	//system("pause");
	return 0;
}