newton/solutions/mishka_and_game.py

19 lines
299 B
Python

n = int(input())
mishka = 0
chris = 0
for _ in range(n):
m, c = [int(x) for x in input().split(' ')]
if m > c:
mishka += 1
elif c > m:
chris += 1
if mishka > chris:
print("Mishka")
elif chris > mishka:
print("Chris")
else:
print("Friendship is magic!^^")