You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
365 B
C++

#include <cstdio>
int n, x, y, a, b;
int main()
{
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
scanf("%d%d", &x, &y);
if (x > y) a++;
if (x < y) b++;
}
if (a == b)
printf("Friendship is magic!^^");
else if (a > b)
printf("Mishka");
else
printf("Chris");
return 0;
}