n = int(input())
m = 0
c = 0
for i in range(n):
a,b = map(int,input().split())
if a > b:
m += 1
elif a == b:
m += 1
c += 1
else:
c += 1
if m > c:
print("Mishka")
elif c > m:
print("Chris")
else:
print("Friendship is magic!^^")
#include<iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int m,c;
int Mishka_count = 0;
int Chris_count = 0;
for(int i=1; i<=n; i++)
{
cin >> m >> c;
if(m > c)
{
Mishka_count++;
}
else if(c > m)
{
Chris_count++;
}
}
if(Mishka_count > Chris_count)
{
cout << "Mishka";
}
else if(Mishka_count < Chris_count)
{
cout << "Chris";
}
else if(Mishka_count == Chris_count)
{
cout << "Friendship is magic!^^";
}
}
1726C - Jatayu's Balanced Bracket Sequence | 1726A - Mainak and Array |
1613C - Poisoned Dagger | 475B - Strongly Connected City |
652B - z-sort | 124B - Permutations |
1496C - Diamond Miner | 680B - Bear and Finding Criminals |
1036E - Covered Points | 1015D - Walking Between Houses |
155B - Combination | 1531A - Зингер | color |
1678A - Tokitsukaze and All Zero Sequence | 896A - Nephren gives a riddle |
761A - Dasha and Stairs | 1728B - Best Permutation |
1728A - Colored Balls Revisited | 276B - Little Girl and Game |
1181A - Chunga-Changa | 1728C - Digital Logarithm |
1728D - Letter Picking | 792B - Counting-out Rhyme |
1195A - Drinks Choosing | 5D - Follow Traffic Rules |
1272A - Three Friends | 1632D - New Year Concert |
1400D - Zigzags | 716C - Plus and Square Root |
412A - Poster | 844B - Rectangles |