newton/solutions/python/703A.py

20 lines
299 B
Python
Raw Normal View History

2025-01-11 11:41:29 +00:00
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!^^")