Mishka is a little polar bear. As known, little bears loves spending their free time playing dice for chocolates. Once in a wonderful sunny morning, walking around blocks of ice, Mishka met her friend Chris, and they started playing the game.

Rules of the game are very simple: at first number of rounds n is defined. In every round each of the players throws a cubical dice with distinct numbers from 1 to 6 written on its faces. Player, whose value after throwing the dice is greater, wins the round. In case if player dice values are equal, no one of them is a winner.

In average, player, who won most of the rounds, is the winner of the game. In case if two players won the same number of rounds, the result of the game is draw.

Mishka is still very little and can't count wins and losses, so she asked you to watch their game and determine its result. Please help her!


-----Input-----

The first line of the input contains single integer n n (1 ≤ n ≤ 100) — the number of game rounds.

The next n lines contains rounds description. i-th of them contains pair of integers m_{i} and c_{i} (1 ≤ m_{i},  c_{i} ≤ 6) — values on dice upper face after Mishka's and Chris' throws in i-th round respectively.


-----Output-----

If Mishka is the winner of the game, print "Mishka" (without quotes) in the only line.

If Chris is the winner of the game, print "Chris" (without quotes) in the only line.

If the result of the game is draw, print "Friendship is magic!^^" (without quotes) in the only line.


-----Examples-----
Input
3
3 5
2 1
4 2

Output
Mishka
Input
2
6 1
1 6

Output
Friendship is magic!^^
Input
3
1 5
3 3
2 2

Output
Chris


-----Note-----

In the first sample case Mishka loses the first round, but wins second and third rounds and thus she is the winner of the game.

In the second sample case Mishka wins the first round, Chris wins the second round, and the game ends with draw with score 1:1.

In the third sample case Chris wins the first round, but there is no winner of the next two rounds. The winner of the game is Chris.

Difficulty: EASY
Tags: Implementation

Starter code:

Solutions:
t = int(input())
mis = 0
chi = 0
for _ in range(t):
	(m, c) = list(map(int, input().split(' ')))
	if m > c:
		mis += 1
	elif c > m:
		chi += 1
if mis > chi:
	print('Mishka')
elif chi > mis:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
for i in range(n):
	q = input()
	(a, b) = q.split()
	a = int(a)
	b = int(b)
	if a > b:
		m += 1
	elif a < b:
		c += 1
if c > m:
	print('Chris')
elif m > c:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
a = []
for i in range(n):
	a.append(list(map(int, input().split())))
	if a[i][0] > a[i][1]:
		m += 1
	if a[i][1] > a[i][0]:
		c += 1
if m > c:
	print('Mishka')
if m < c:
	print('Chris')
if m == c:
	print('Friendship is magic!^^')


gameround = int(input())
mishka = 0
chris = 0
for i in range(gameround):
	(a, b) = map(int, input().split())
	if a > b:
		mishka += 1
	elif b > a:
		chris += 1
if chris > mishka:
	print('Chris')
elif mishka > chris:
	print('Mishka')
elif mishka == chris:
	print('Friendship is magic!^^')


mishika = 0
chris = 0
for roll in range(int(input())):
	(m, c) = [int(a) for a in input().split()]
	if m > c:
		mishika += 1
	elif m < c:
		chris += 1
	else:
		chris += 1
		mishika += 1
if mishika > chris:
	print('Mishka')
elif mishika < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
s = 0
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		s += 1
	elif m < c:
		s -= 1
if s > 0:
	print('Mishka')
elif s < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = 0
b = 0
n = int(input())
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		a += 1
	if y > x:
		b += 1
if a > b:
	print('Mishka')
elif b > a:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


n = int(input())
h = {'m': 0, 'c': 0}
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		h['m'] += 1
	elif x < y:
		h['c'] += 1
if h['m'] > h['c']:
	print('Mishka')
elif h['m'] < h['c']:
	print('Chris')
else:
	print('Friendship is magic!^^')


def Game(n, s):
	mishka = 0
	chris = 0
	for i in range(n):
		if s[i][0] > s[i][1]:
			mishka = mishka + 1
		elif s[i][0] < s[i][1]:
			chris = chris + 1
	if mishka > chris:
		return 'Mishka'
	elif mishka < chris:
		return 'Chris'
	else:
		return 'Friendship is magic!^^'
x = int(input())
r = []
for i in range(x):
	s = [int(n) for n in input().split()]
	r.append(s)
print(Game(x, r))


ca = 0
cb = 0
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		ca += 1
	elif b > a:
		cb += 1
if ca > cb:
	print('Mishka')
elif ca < cb:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
k = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		m = m + 1
	elif a < b:
		k = k + 1
	else:
		continue
if m > k:
	print('Mishka')
elif m < k:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count1 = 0
count2 = 0
for i in range(n):
	s = input().split(' ')
	if s[0] > s[1]:
		count1 += 1
	if s[0] < s[1]:
		count2 += 1
if count1 > count2:
	print('Mishka')
elif count1 < count2:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


t = int(input())
(m, c) = (0, 0)
while t != 0:
	(x, y) = map(int, input().strip().split())
	if x > y:
		m += 1
	elif x < y:
		c += 1
	t -= 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
an = 0
mis = 0
for x in range(n):
	(m, a) = input().strip().split()[:2]
	if int(m) > int(a):
		mis += 1
	elif int(a) > int(m):
		an += 1
if an < mis:
	print('Mishka')
elif an > mis:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
a1 = []
for i in range(n):
	(a, b) = list(map(int, input().split()))
	if a > b:
		a1.append(1)
	if a < b:
		a1.append(2)
	if a == b:
		a1.append(0)
if a1.count(1) > a1.count(2):
	print('Mishka')
if a1.count(2) > a1.count(1):
	print('Chris')
if a1.count(2) == a1.count(1):
	print('Friendship is magic!^^')


t = int(input())
x = y = 0
for i in range(t):
	(m, n) = map(int, input().split())
	if m > n:
		x += 1
	elif n > m:
		y += 1
if x > y:
	print('Mishka')
elif y > x:
	print('Chris')
elif x == y:
	print('Friendship is magic!^^')


n = int(input())
t = 0
z = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		t += 1
	elif a < b:
		z += 1
if t > z:
	print('Mishka')
elif z > t:
	print('Chris')
else:
	print('Friendship is magic!^^')


Mishka_balls = 0
Chris_balls = 0
roun = int(input())
for i in range(roun):
	(Mishka, Chris) = map(int, input().split())
	if Mishka > Chris:
		Mishka_balls += 1
	elif Mishka < Chris:
		Chris_balls += 1
	elif Mishka == Chris:
		Chris_balls += 1
		Mishka_balls += 1
if Mishka_balls > Chris_balls:
	print('Mishka')
elif Mishka_balls < Chris_balls:
	print('Chris')
elif Mishka_balls == Chris_balls:
	print('Friendship is magic!^^')


n = int(input())
sum1 = sum2 = 0
for i in range(n):
	(a, b) = map(int, input().split(' '))
	if a > b:
		sum1 += 1
	if b > a:
		sum2 += 1
print('Mishka' if sum1 > sum2 else 'Chris' if sum2 > sum1 else 'Friendship is magic!^^')


(m, c) = (0, 0)
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	if a != b:
		if a > b:
			m += 1
		else:
			c += 1
if m > c:
	print('Mishka')
elif m == c:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = eval(input())
i = 1
m = 0
c = 0
while i <= n:
	a = list(map(int, input().split()))
	if a[0] > a[1]:
		m += 1
	elif a[1] > a[0]:
		c += 1
	i += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka = 0
chris = 0
for count in range(n):
	dice = input().split()
	m = dice[0]
	c = dice[1]
	if m > c:
		mishka += 1
	if c > m:
		chris += 1
	if c == m:
		pass
if mishka > chris:
	print('Mishka')
if chris > mishka:
	print('Chris')
if chris == mishka:
	print('Friendship is magic!^^')


n = int(input())
l = []
for i in range(n):
	i = list(map(int, input().split()))
	l += [i]
m = 0
c = 0
for r in l:
	if r[0] > r[1]:
		m += 1
	elif r[0] < r[1]:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
elif c == m:
	print('Friendship is magic!^^')


n = int(input())
s1 = 0
s2 = 0
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		s1 += 1
	if x < y:
		s2 += 1
if s1 > s2:
	print('Mishka')
if s1 == s2:
	print('Friendship is magic!^^')
if s1 < s2:
	print('Chris')


N = int(input())
mcnt = 0
ccnt = 0
for i in range(0, N):
	(M, C) = map(int, input().split())
	if M > C:
		mcnt += 1
	if M < C:
		ccnt += 1
if mcnt > ccnt:
	print('Mishka')
elif mcnt < ccnt:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


n = int(input())
m = 0
c = 0
for i in range(0, n):
	text = input()
	t = text.split(' ')
	if int(t[0]) > int(t[1]):
		m += 1
	elif int(t[0]) < int(t[1]):
		c += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
elif m == c:
	print('Friendship is magic!^^')


d = dict()
l = []
(m, c) = (0, 0)
for i in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		m = m + 1
	elif b > a:
		c = c + 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


c = 0
for i in range(int(input())):
	(x, y) = map(int, input().split())
	c += x > y
	c -= x < y
print('Friendship is magic!^^' if c == 0 else ['Mishka', 'Chris'][c < 0])


n = int(input())
mishka = 0
chris = 0
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		mishka += 1
	if c > m:
		chris += 1
if mishka > chris:
	print('Mishka')
if mishka == chris:
	print('Friendship is magic!^^')
if chris > mishka:
	print('Chris')


numb = int(input())
mi = 0
ch = 0
for n in range(numb):
	word = str(input())
	word = word.split(' ')
	m = int(word[0])
	c = int(word[1])
	if m > c:
		mi += 1
	elif c > m:
		ch += 1
	else:
		mi = mi
		ch = ch
if mi > ch:
	print('Mishka')
elif mi == ch:
	print('Friendship is magic!^^')
else:
	print('Chris')


m1 = 0
c1 = 0
for i in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		m1 += 1
	if c > m:
		c1 += 1
if c1 > m1:
	print('Chris')
if m1 > c1:
	print('Mishka')
elif c1 == m1:
	print('Friendship is magic!^^')


t = int(input())
l = []
ca = 0
cb = 0
for i in range(t):
	(a, b) = [int(x) for x in input().split()]
	if a > b:
		ca += 1
	elif b > a:
		cb += 1
if ca > cb:
	print('Mishka')
elif cb > ca:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mish = chris = draw = 0
for i in range(n):
	(m, c) = list(map(int, input().split()))
	if m > c:
		mish += 1
	elif m < c:
		chris += 1
if mish > chris:
	print('Mishka')
elif chris > mish:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = c = 0
for i in range(n):
	(mi, ci) = [int(c) for c in input().split()]
	if mi > ci:
		m += 1
	elif mi < ci:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
while n > 0:
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		m += 1
	elif chris > mishka:
		c += 1
	n -= 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
(m, c) = (0, 0)
for _ in range(t):
	(a, b) = list(map(int, input().strip().split()))
	if a < b:
		c += 1
	elif a > b:
		m += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
elif m == c:
	print('Friendship is magic!^^')


n = int(input())
(mm, cc, d) = (0, 0, 0)
for i in range(n):
	(m, c) = map(int, input().split(' '))
	if m > c:
		mm += 1
	elif c > m:
		cc += 1
mmm = max(mm, cc, d)
if mmm == mm and mmm != cc:
	print('Mishka')
elif mmm == cc and mmm != mm:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


n = int(input())
a = 0
b = 0
for i in range(1, n + 1):
	(p, q) = map(int, input().split())
	if p < q:
		b += 1
	elif p > q:
		a += 1
if b == a:
	print('Friendship is magic!^^')
elif b < a:
	print('Mishka')
else:
	print('Chris')


from sys import stdin, stdout
lines = stdin.readlines()
n = lines[0]
n = int(n)
score = 0
for line in lines[1:]:
	(a, b) = line.split()
	a = int(a)
	b = int(b)
	if a > b:
		score += 1
	elif a < b:
		score -= 1
if score > 0:
	stdout.write('Mishka')
elif score < 0:
	stdout.write('Chris')
else:
	stdout.write('Friendship is magic!^^')


a = 0
for i in range(int(input())):
	f = input().split()
	b = int(f[0])
	c = int(f[1])
	if b > c:
		a += 1
	elif b < c:
		a -= 1
if a > 0:
	print('Mishka')
elif a == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


t = int(input())
m = 0
c = 0
for x in range(t):
	result = [int(n) for n in input().split()]
	if result[0] > result[1]:
		m += 1
		continue
	if result[0] < result[1]:
		c += 1
		continue
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
s_m = 0
s_c = 0
for i in range(1, n + 1):
	(m, c) = map(int, input().split())
	if m > c:
		s_m += 1
	elif m < c:
		s_c += 1
	else:
		continue
if s_m > s_c:
	print('Mishka')
elif s_m < s_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
a = b = 0
for i in range(n):
	(g, f) = map(int, input().split())
	if g > f:
		a = a + 1
	elif g < f:
		b = b + 1
if a > b:
	print('Mishka')
elif a < b:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
sumMisha = 0
sumKris = 0
for i in range(n):
	(misha, kris) = map(int, input().split())
	if misha > kris:
		sumMisha = sumMisha + 1
	elif misha < kris:
		sumKris = sumKris + 1
	else:
		sumMisha = sumMisha + 1
		sumKris = sumKris + 1
if sumMisha > sumKris:
	print('Mishka')
elif sumMisha < sumKris:
	print('Chris')
else:
	print('Friendship is magic!^^')


(mcount, ccount) = (0, 0)
n = int(input())
for _ in range(n):
	(m, c) = map(int, input().split())
	mcount += m > c
	ccount += c > m
if mcount > ccount:
	print('Mishka')
elif mcount < ccount:
	print('Chris')
else:
	print('Friendship is magic!^^')


(check_mishka, check_chris) = (0, 0)
for _ in range(int(input())):
	[m, c] = map(int, input().split())
	if m > c:
		check_mishka += 1
	if m < c:
		check_chris += 1
	else:
		continue
if check_chris == check_mishka:
	print('Friendship is magic!^^')
else:
	print('Mishka' if check_mishka > check_chris else 'Chris')


misha = 'Mishka'
cris = 'Chris'
friend_win = 'Friendship is magic!^^'
misha_count = 0
cris_count = 0
n = int(input())
for i in range(0, n):
	round_play = input()
	if int(round_play[0]) > int(round_play[2]):
		misha_count += 1
	elif int(round_play[0]) < int(round_play[2]):
		cris_count += 1
if misha_count > cris_count:
	print(misha)
elif misha_count < cris_count:
	print(cris)
else:
	print(friend_win)


t = int(input())
c = 0
c1 = 0
while t:
	t = t - 1
	(a, b) = map(int, input().split())
	if a > b:
		c = c + 1
	elif b > a:
		c1 = c1 + 1
if c > c1:
	print('Mishka')
elif c1 > c:
	print('Chris')
elif c == c1:
	print('Friendship is magic!^^')


import sys, re
ls = [l.rstrip() for l in sys.stdin.readlines()]
(n,) = map(int, ls[0].split(' '))
res = 0
for i in range(n):
	(m, c) = map(int, ls[i + 1].split(' '))
	res += 1 if m > c else -1 if m < c else 0
print(['Friendship is magic!^^', 'Mishka', 'Chris'][res // abs(res) if res != 0 else 0])


n = int(input())
i = 0
mishka = 0
chris = 0
draw = 0
while i < n:
	(a, b) = input().split()
	int(a)
	int(b)
	if a > b:
		mishka += 1
	elif b > a:
		chris += 1
	i += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
lt = []
score = 0
for i in range(n):
	lt.append(tuple(map(int, input().split())))
for i in lt:
	if i[0] > i[1]:
		score += 1
	elif i[0] < i[1]:
		score -= 1
if score > 0:
	print('Mishka')
elif score < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


count_round = int(input())
first = 0
two = 0
while count_round > 0:
	(first_value, two_value) = map(int, input().split())
	if first_value > two_value:
		first += 1
	elif first_value == two_value:
		first += 1
		two += 1
	else:
		two += 1
	count_round -= 1
if first > two:
	print('Mishka')
elif first == two:
	print('Friendship is magic!^^')
else:
	print('Chris')


mc = 0
cc = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		mc += 1
	elif c > m:
		cc += 1
if mc > cc:
	print('Mishka')
elif cc > mc:
	print('Chris')
else:
	print('Friendship is magic!^^')


r = int(input())
game = []
for i in range(0, r):
	lst = input().split()
	game.append(lst)
	m = c = d = 0
for i in range(0, r):
	if int(game[i][0]) > int(game[i][1]):
		m += 1
	elif int(game[i][0]) < int(game[i][1]):
		c += 1
	elif int(game[i][0]) == int(game[i][1]):
		d += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
elif m == c:
	print('Friendship is magic!^^')


n = int(input())
count_Mishka = 0
count_Chris = 0
for h in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		count_Mishka += 1
	elif c > m:
		count_Chris += 1
	else:
		count_Mishka += 0
		count_Chris += 0
if count_Mishka > count_Chris:
	print('Mishka')
elif count_Chris > count_Mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka_wins = 0
chris_wins = 0
for i in range(0, n):
	(mishka, chris) = [int(i) for i in input().split(' ')]
	if mishka > chris:
		mishka_wins += 1
	if mishka < chris:
		chris_wins += 1
if mishka_wins > chris_wins:
	print('Mishka')
elif mishka_wins < chris_wins:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
v1 = 0
v2 = 0
for _ in range(t):
	(a, b) = map(int, input().split())
	if a < b:
		v2 += 1
	if b < a:
		v1 += 1
if v1 > v2:
	print('Mishka')
elif v2 > v1:
	print('Chris')
else:
	print('Friendship is magic!^^')


score = 0
for i in range(int(input())):
	a = list(map(int, input().split(' ')))
	if a[0] - a[1] > 0:
		score += 1
	elif a[0] - a[1] < 0:
		score -= 1
if score == 0:
	print('Friendship is magic!^^')
elif score > 0:
	print('Mishka')
else:
	print('Chris')


n = int(input())
minsk = 0
chri = 0
while n:
	n = n - 1
	(p, q) = [int(x) for x in input().split()]
	if p > q:
		minsk += 1
	elif p < q:
		chri += 1
	else:
		pass
if minsk > chri:
	print('Mishka')
elif minsk < chri:
	print('Chris')
else:
	print('Friendship is magic!^^')


import math
T = int(input())
A = 0
B = 0
for i in range(T):
	(a, b) = [int(x) for x in input().split()]
	if a > b:
		A = A + 1
	elif a < b:
		B = B + 1
if A > B:
	print('Mishka')
elif A < B:
	print('Chris')
else:
	print('Friendship is magic!^^')


import math
import itertools
gh = lambda : map(int, input().split())
intin = lambda : int(input())

def main():
	n = intin()
	m = 0
	c = 0
	for i in range(n):
		(a, b) = gh()
		c += a < b
		m += a > b
	if m > c:
		print('Mishka')
	elif m < c:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


from collections import Counter
n = int(input())
v = []
for i in range(n):
	(a, b) = [int(X) for X in input().split()]
	if a > b:
		v.append('Mishka')
	elif a < b:
		v.append('Chris')
c = Counter(v)
hv = c.values()
if len(v) == 0:
	print('Friendship is magic!^^')
for (x, y) in c.items():
	if v.count('Mishka') == v.count('Chris'):
		print('Friendship is magic!^^')
		break
	if y == max(hv):
		print(x)
		break


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


n = int(input())
Mishka = 0
Chris = 0
for i in range(n):
	(M, D) = map(int, input().split())
	if M > D:
		Mishka += 1
	if D > M:
		Chris += 1
if Mishka > Chris:
	print('Mishka')
elif Chris > Mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


n = int(input())
mishka = 0
chris = 0
for i in range(n):
	outcome = tuple([int(element) for element in input().split(' ')])
	if outcome[0] > outcome[1]:
		mishka += 1
	elif outcome[0] < outcome[1]:
		chris += 1
	else:
		mishka += 1
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
cc = cm = 0
for i in range(n):
	(x, y) = map(int, input().split(' '))
	if x > y:
		cm = cm + 1
	elif x < y:
		cc = cc + 1
	else:
		cc = cc + 1
		cm = cm + 1
if cm > cc:
	print('Mishka')
elif cc > cm:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
y = []
count = 0
plus = 0
draw = 0
for i in range(n):
	y.append(list(map(int, input().split())))
for i in range(n):
	if y[i][0] > y[i][1]:
		count = count + 1
	if y[i][0] < y[i][1]:
		plus = plus + 1
	if y[i][0] == y[i][1]:
		draw = draw + 0
if count > plus:
	print('Mishka')
elif count < plus:
	print('Chris')
elif count == plus:
	print('Friendship is magic!^^')


t = int(input())
mi = 0
ch = 0
while t > 0:
	t -= 1
	(a, b) = map(int, input().split())
	if a > b:
		mi += 1
	elif b > a:
		ch += 1
if mi > ch:
	print('Mishka')
elif mi < ch:
	print('Chris')
else:
	print('Friendship is magic!^^')


n_round = int(input())
score = {'m': 0, 'c': 0}
for i in range(0, n_round):
	(m, c) = map(int, input().split())
	if m > c:
		score['m'] += 2
	elif c > m:
		score['c'] += 2
	elif m == c:
		score['m'] += 1
		score['c'] += 1
if score['c'] > score['m']:
	print('Chris')
elif score['c'] < score['m']:
	print('Mishka')
else:
	print('Friendship is magic!^^')


cases = int(input(''))
counterM = 0
counterC = 0
for case in range(cases):
	x = input('').split()
	if int(x[0]) > int(x[1]):
		counterM += 1
	elif int(x[0]) < int(x[1]):
		counterC += 1
	else:
		continue
if counterM > counterC:
	print('Mishka')
elif counterM < counterC:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = 0
y = 0
for _ in range(int(input())):
	(a, b) = list(map(int, input().split()))
	x += a > b
	y += b > a
if x > y:
	print('Mishka')
elif y > x:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mat = [[int(i) for i in input().split()] for j in range(n)]
(m, c) = (0, 0)
for r in mat:
	if r[0] > r[1]:
		m += 1
	if r[0] < r[1]:
		c += 1
if m > c:
	print('Mishka')
if m < c:
	print('Chris')
if m == c:
	print('Friendship is magic!^^')


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


n = int(input())
rounds = []
mishika = 0
chris = 0
for i in range(0, n):
	(p, q) = map(int, input().split())
	rounds.append(p)
	rounds.append(q)
	if p > q:
		mishika += 1
	elif p < q:
		chris += 1
	elif p == q:
		continue
if mishika > chris:
	print('Mishka')
elif mishika < chris:
	print('Chris')
elif mishika == chris:
	print('Friendship is magic!^^')


numRounds = input()
mish = 0
chris = 0
for i in range(int(numRounds)):
	tuples = input()
	tuples = tuples.split()
	mishRoll = tuples[0]
	chrisRoll = tuples[1]
	if mishRoll > chrisRoll:
		mish += 1
	elif mishRoll == chrisRoll:
		mish += 1
		chris += 1
	else:
		chris += 1
if mish > chris:
	print('Mishka')
elif mish < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


input_s = int(input())
a = 0
b = 0
for i in range(input_s):
	input_l = input().split(' ')
	a_l = int(input_l[0])
	b_l = int(input_l[1])
	if a_l > b_l:
		a += 1
	elif a_l < b_l:
		b += 1
if a > b:
	print('Mishka')
elif b > a:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
res_chris = 0
res_mishka = 0
a = []
for i in range(n):
	line = input()
	a = line.split()
	if int(a[0]) > int(a[1]):
		res_mishka += 1
	elif int(a[0]) < int(a[1]):
		res_chris += 1
	line = ''
	a = []
if res_chris < res_mishka:
	print('Mishka')
elif res_chris > res_mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


num_of_rounds = int(input())
m_score = 0
c_score = 0
for i in range(num_of_rounds):
	(m, c) = [int(j) for j in input().split()]
	if m > c:
		m_score += 1
	elif c > m:
		c_score += 1
if m_score > c_score:
	print('Mishka')
elif m_score < c_score:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
e = 0
d = 0
for i in range(a):
	b = input()
	c = b.split()
	if int(c[0]) > int(c[1]):
		e += 1
	elif int(c[0]) < int(c[1]):
		d += 1
	else:
		pass
if e > d:
	print('Mishka')
elif d > e:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
mc = 0
cc = 0
for _ in range(t):
	(x, y) = input().split()
	(x, y) = (int(x), int(y))
	if x > y:
		mc = mc + 1
	elif y > x:
		cc = cc + 1
	else:
		mc = mc + 0
		cc = cc + 0
if mc > cc:
	print('Mishka')
elif mc < cc:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka_point = 0
chris_point = 0
draw = 0
for i in range(n):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		mishka_point += 1
	if chris > mishka:
		chris_point += 1
	elif mishka_point == chris_point:
		draw += 1
if mishka_point > chris_point:
	print('Mishka')
if chris_point > mishka_point:
	print('Chris')
elif mishka_point == chris_point:
	print('Friendship is magic!^^')


a = int(input())
mish = 0
chris = 0
for i in range(0, a):
	b = [int(x) for x in input().strip().split()]
	if b[0] > b[1]:
		mish += 1
	elif b[1] > b[0]:
		chris += 1
if mish > chris:
	print('Mishka')
elif chris > mish:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
a = 0
b = 0
for i in range(0, n):
	buf = [int(char) for char in input().split(' ')]
	if buf[0] > buf[1]:
		a += 1
	elif buf[0] < buf[1]:
		b += 1
if a == b:
	print('Friendship is magic!^^')
elif a > b:
	print('Mishka')
else:
	print('Chris')


n = int(input())
c1 = c2 = 0
for i in range(n):
	(m, c) = input().split(' ')
	if m > c:
		c1 += 1
	elif m < c:
		c2 += 1
if c1 > c2:
	print('Mishka')
elif c1 == c2:
	print('Friendship is magic!^^')
else:
	print('Chris')


x = int(input())
m = 0
c = 0
for i in range(x):
	(y, z) = [int(a) for a in input().split()]
	if y < z:
		c += 1
	elif z < y:
		m += 1
	else:
		continue
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
miska = 0
chris = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		miska += 1
	elif b > a:
		chris += 1
if miska != chris:
	print('Chris' if chris > miska else 'Mishka')
else:
	print('Friendship is magic!^^')


n = int(input(''))
i = 0
values = []
mishka = 0
chris = 0
draw = 0
val = 0
while i < n:
	values.append(input('').split(' '))
	i += 1
while val < len(values):
	if int(values[val][0]) > int(values[val][1]):
		mishka += 1
	elif int(values[val][0]) < int(values[val][1]):
		chris += 1
	else:
		draw += 1
	val += 1
if mishka > chris:
	print('Mishka')
elif mishka < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka = 0
chris = 0
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		mishka += 1
	elif y > x:
		chris += 1
if mishka > chris:
	print('Mishka')
elif mishka == chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


N = int(input())
res = 0
for _ in range(N):
	(v1, v2) = map(int, input().split())
	d = v1 - v2
	if d:
		res += d / abs(d)
if res > 0:
	print('Mishka')
elif res < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	n = int(input())
	(m, c) = (0, 0)
	for i in range(n):
		(mi, ci) = map(int, input().split(' '))
		if mi > ci:
			m += 1
		elif ci > mi:
			c += 1
	if m == c:
		return 'Friendship is magic!^^'
	elif m > c:
		return 'Mishka'
	return 'Chris'
print(main())


n = int(input())
a = [0, 0]
for _ in ' ' * n:
	(x, y) = map(int, input().split())
	if x == y:
		a = a
	else:
		a[x > y] += 1
if a[1] > a[0]:
	print('Mishka')
elif a[1] < a[0]:
	print('Chris')
else:
	print('Friendship is magic!^^')


(n,) = map(int, input().split())
g = 0
for i in range(n):
	(m, k) = map(int, input().split())
	if m > k:
		g += 1
	elif k > m:
		g -= 1
if g > 0:
	print('Mishka')
elif g < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


num = int(input())
test_1 = 0
test_2 = 0
if 1 <= num <= 100:
	for __ in range(num):
		(misha, kris) = map(int, input().split())
		if misha > kris:
			test_1 += 1
		if misha < kris:
			test_2 += 1
		if misha == kris:
			test_1 += 1
			test_2 += 1
if test_1 > test_2:
	print('Mishka')
if test_1 < test_2:
	print('Chris')
if test_1 == test_2:
	print('Friendship is magic!^^')


rounds = int(input())
(x, y) = (0, 0)
for i in range(rounds):
	(m, c) = [int(i) for i in input().split()]
	if m > c:
		x += 1
	elif m < c:
		y += 1
if x > y:
	print('Mishka')
elif x < y:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


def mishkaAndGame():
	n = int(input())
	mishka = 0
	chris = 0
	for i in range(n):
		values = input().split()
		if values[0] > values[1]:
			mishka += 1
		elif values[0] < values[1]:
			chris += 1
		else:
			continue
	if mishka > chris:
		print('Mishka')
	elif mishka < chris:
		print('Chris')
	else:
		print('Friendship is magic!^^')
mishkaAndGame()


m = 0
c = 0
for x in range(int(input())):
	tmp = list(map(int, input().split(' ')))
	if tmp[0] > tmp[1]:
		m += 1
	elif tmp[0] < tmp[1]:
		c += 1
if m > c:
	print('Mishka')
elif m == c:
	print('Friendship is magic!^^')
else:
	print('Chris')


rounds = int(input())
mishka = 0
chris = 0
for _ in range(rounds):
	(m, c) = list(map(int, input().split()))
	if m > c:
		mishka += 1
	elif m < c:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys
(mcnt, ccnt) = (0, 0)
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		mcnt += 1
	elif m < c:
		ccnt += 1
if mcnt == ccnt:
	print('Friendship is magic!^^')
elif mcnt > ccnt:
	print('Mishka')
else:
	print('Chris')


import sys
n = int(input())
mr = 0
cr = 0
for i in range(n):
	(m, c) = map(int, sys.stdin.readline().split())
	if m > c:
		mr += 1
	elif c > m:
		cr += 1
if mr > cr:
	print('Mishka')
elif cr > mr:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
sum = 0
count = 0
for i in range(0, t, 1):
	(a, b) = map(int, input().split())
	if a > b:
		sum += 1
	elif a < b:
		count += 1
if sum > count:
	print('Mishka')
elif sum < count:
	print('Chris')
else:
	print('Friendship is magic!^^')


from random import randint
ms = 0
cr = 0
n = int(input())
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		ms += 1
	elif c > m:
		cr += 1
if ms > cr:
	print('Mishka')
elif cr > ms:
	print('Chris')
if cr == ms:
	print('Friendship is magic!^^')


k = 0
for i in range(int(input())):
	(c, d) = map(int, input().split())
	k += c > d
	k -= c < d
if k > 0:
	print('Mishka')
elif k < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


num = int(input())
m = 0
c = 0
for i in range(num):
	(mm, cc) = [int(x) for x in input().split()]
	if mm > cc:
		m += 1
	elif mm < cc:
		c += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


nn = int(input())
fm = 0
fc = 0
fd = 0
for i in range(nn):
	(m, c) = map(int, input().split())
	if m > c:
		fm += 1
	elif m == c:
		fd += 1
	else:
		fc += 1
if fm > fc:
	print('Mishka')
elif fm == fc:
	print('Friendship is magic!^^')
else:
	print('Chris')


(p, w) = (0, 0)
for i in range(int(input())):
	x = list(map(int, input().split()))
	if x[0] > x[1]:
		p += 1
	elif x[1] > x[0]:
		w += 1
if p > w:
	print('Mishka')
elif p < w:
	print('Chris')
else:
	print('Friendship is magic!^^')


c = 0
for i in range(0, int(input())):
	(a, b) = map(int, input().split(' '))
	c += a > b
	c -= b > a
if c > 0:
	print('Mishka')
if c < 0:
	print('Chris')
if c == 0:
	print('Friendship is magic!^^')


n = int(input())
sm = 0
sc = 0
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		sm += 1
	if m < c:
		sc += 1
if sm == sc:
	print('Friendship is magic!^^')
if sm > sc:
	print('Mishka')
if sm < sc:
	print('Chris')


n = int(input())
c = 0
d = 0
for i in range(n):
	(a, b) = [int(x) for x in input().split(' ')]
	if a > b:
		c += 1
	elif a < b:
		d += 1
if c > d:
	print('Mishka')
elif c == d:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
mc = [list(map(int, input().split())) for _ in range(n)]
m = 0
c = 0
for mci in mc:
	if mci[0] > mci[1]:
		m += 1
	elif mci[0] < mci[1]:
		c += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
elif m == c:
	print('Friendship is magic!^^')


res_m = res_c = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		res_m += 1
	if c > m:
		res_c += 1
if res_m > res_c:
	print('Mishka')
elif res_c > res_m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
ans = 0
for _ in range(n):
	(m, c) = map(int, input().split())
	if m != c:
		ans += 1 if m > c else -1
if ans > 0:
	print('Mishka')
elif ans < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	n = int(input())
	h = 0
	l = 0
	for i in range(n):
		hh = input().split(' ')
		a = hh[0]
		b = hh[1]
		if a > b:
			h += 1
		if a < b:
			l += 1
	if h > l:
		print('Mishka')
	if h < l:
		print('Chris')
	if h == l:
		print('Friendship is magic!^^')
main()


n = int(input())
(m1, c1, d) = (0, 0, 0)
for i in range(n):
	(m, c) = list(map(int, input().rstrip().split()))
	if m > c:
		m1 += 1
	elif c > m:
		c1 += 1
	else:
		d += 1
if m1 > c1:
	print('Mishka')
elif c1 > m1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
ret = 0
for i in range(n):
	s = input().split()
	if int(s[0]) > int(s[1]):
		ret += 1
	elif int(s[0]) < int(s[1]):
		ret -= 1
	else:
		pass
if ret > 0:
	print('Mishka')
elif ret < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


h = 0
for i in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		h += 1
	elif b > a:
		h -= 1
if h > 0:
	print('Mishka')
elif h == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


x = int(input())
count = 0
for i in range(x):
	k = list(map(int, input().split()))
	if k[0] > k[1]:
		count = count + 1
	elif k[0] < k[1]:
		count = count - 1
if count > 0:
	print('Mishka')
elif count < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
coua = 0
coub = 0
for i in range(n):
	(a, b) = map(int, input().split(' '))
	if a > b:
		coua += 1
	elif b > a:
		coub += 1
if coua > coub:
	print('Mishka')
elif coub > coua:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count_m = 0
count_c = 0
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		count_m += 1
	if m < c:
		count_c += 1
if count_m > count_c:
	print('Mishka')
if count_m < count_c:
	print('Chris')
if count_m == count_c:
	print('Friendship is magic!^^')


num = int(input())
m = c = 0
for y in range(num):
	arr = list(map(int, input().split()))
	if int(arr[0]) < int(arr[1]):
		c += 1
	if int(arr[0]) > int(arr[1]):
		m += 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
else:
	print('Chris')


n = int(input())
lis = []
mi = 0
ch = 0
for i in range(0, n):
	a = [int(i) for i in input().split()]
	if a[0] > a[1]:
		mi += 1
	elif a[0] < a[1]:
		ch += 1
if mi > ch:
	print('Mishka')
elif ch == mi:
	print('Friendship is magic!^^')
else:
	print('Chris')


dict = {'Mishka': 0, 'Chris': 0}
n = int(input())
while n != 0:
	(a, b) = map(int, input().split())
	if a > b:
		dict['Mishka'] += 1
	elif b > a:
		dict['Chris'] += 1
	n -= 1
if dict['Mishka'] > dict['Chris']:
	print('Mishka')
elif dict['Mishka'] < dict['Chris']:
	print('Chris')
else:
	print('Friendship is magic!^^')


res = 0
for i in range(int(input())):
	(m, c) = map(int, input().split())
	res += m > c
	res -= c > m
print('Mishka' if res > 0 else ['Friendship is magic!^^', 'Chris'][res < 0])


def tripleCond(L, R, s1='', s2='', s3=''):
	if L > R:
		return s1
	if L < R:
		return s2
	return s3

def judge(p):
	if p[0] > p[1]:
		return 'M'
	if p[1] < p[0]:
		return 'C'
	return ''
n = int(input())
row = ''.join([tripleCond(*input().split(), 'M', 'C') for x in range(n)])
ans = tripleCond(row.count('M'), row.count('C'), 'Mishka', 'Chris', 'Friendship is magic!^^')
print(ans)


n = int(input())
cnt1 = cnt2 = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a < b:
		cnt2 += 1
	if a > b:
		cnt1 += 1
if cnt1 > cnt2:
	print('Mishka')
if cnt1 < cnt2:
	print('Chris')
if cnt1 == cnt2:
	print('Friendship is magic!^^')


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


n = int(input())
c = 0
m = 0
while n:
	(a, b) = map(int, input().split())
	if a > b:
		m += 1
	elif a < b:
		c += 1
	else:
		pass
	n -= 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
(m, c) = (0, 0)
for j in range(0, t):
	p = input().split()
	p = list(map(int, p))
	if p[0] > p[1]:
		m = m + 1
	elif p[1] > p[0]:
		c = c + 1
if c == m:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
else:
	print('Chris')


n = int(input())
a1 = 0
b1 = 0
for i in range(n):
	(a, b) = input().split()
	if int(a) > int(b):
		a1 += 1
	if int(a) < int(b):
		b1 += 1
if a1 > b1:
	print('Mishka')
if a1 < b1:
	print('Chris')
if a1 == b1:
	print('Friendship is magic!^^')


c1 = 0
c2 = 0
for i in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		c1 += 1
	elif a < b:
		c2 += 1
	else:
		pass
if c1 > c2:
	print('Mishka')
elif c1 < c2:
	print('Chris')
elif c1 == c2:
	print('Friendship is magic!^^')


n = int(input())
games_a = 0
games_b = 0
for i in range(n):
	(player_a, player_b) = [int(x) for x in input().split()]
	if player_a > player_b:
		games_a += 1
	if player_a < player_b:
		games_b += 1
if games_a > games_b:
	print('Mishka')
elif games_a == games_b:
	print('Friendship is magic!^^')
else:
	print('Chris')


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


n = int(input())
a = []
i = 0
mis = 0
chr = 0
fr = 0
for i in range(n):
	(ai, bi) = map(int, input().split())
	a.append(ai)
	a.append(bi)
q = 0
while len(a) > 0:
	if a[q] > a[q + 1]:
		mis = mis + 1
	elif a[q] < a[q + 1]:
		chr = chr + 1
	else:
		fr = fr + 0
	a.pop(q)
	a.pop(q)
if mis > chr:
	print('Mishka')
elif chr > mis:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
i = 0
m = []
c = []
victM = 0
victC = 0
for i in range(n):
	(a, b) = map(int, input().split())
	m.append(a)
	c.append(b)
	if m[i] > c[i]:
		victM += 1
		victC -= 1
	elif m[i] < c[i]:
		victM -= 1
		victC += 1
if victM > victC:
	print('Mishka')
elif victM < victC:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m_win = []
c_win = []
while n > 0:
	(m, c) = map(int, input().split())
	if m > c:
		m_win.append(1)
	elif m < c:
		c_win.append(1)
	n -= 1
m = len(m_win)
c = len(c_win)
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m1 = c1 = 0
for i in range(n):
	k = input().split()
	if int(k[0]) > int(k[1]):
		m1 += 1
	elif int(k[0]) < int(k[1]):
		c1 += 1
if m1 > c1:
	print('Mishka')
elif c1 > m1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = c = 0
while n:
	n -= 1
	(x, y) = map(int, input().split())
	m += x > y
	c += y > x
print('Mishka' * (m > c) + 'Chris' * (c > m) + 'Friendship is magic!^^' * (m == c))


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


import sys
input = sys.stdin.readlines()
rounds = int(input[0])
mishkaWins = 0
chrisWins = 0
for x in range(1, rounds + 1):
	roud_res = input[x].split(' ')
	if int(roud_res[0]) > int(roud_res[1]):
		mishkaWins += 1
	elif int(roud_res[0]) < int(roud_res[1]):
		chrisWins += 1
	elif int(roud_res[0]) == int(roud_res[1]):
		mishkaWins += 1
		chrisWins += 1
if mishkaWins < chrisWins:
	print('Chris')
elif mishkaWins > chrisWins:
	print('Mishka')
elif mishkaWins == chrisWins:
	print('Friendship is magic!^^')


def Main():
	n = int(input())
	mishka_count = 0
	chris_count = 0
	for i in range(n):
		(m, c) = map(int, input().split())
		if m > c:
			mishka_count += 1
		elif c > m:
			chris_count += 1
	if mishka_count > chris_count:
		print('Mishka')
	elif chris_count > mishka_count:
		print('Chris')
	else:
		print('Friendship is magic!^^')
Main()


n = int(input())
Mishka = 0
Chris = 0
for i in range(n):
	(Mishka_point, Chris_point) = list(map(int, input().split()))
	if Mishka_point > Chris_point:
		Mishka += 1
	elif Mishka_point < Chris_point:
		Chris += 1
if Mishka > Chris:
	print('Mishka')
elif Mishka < Chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(M, C) = (0, 0)
for _ in range(0, n):
	(a, b) = map(int, input().split())
	M += int(a > b)
	C += int(a < b)
if M > C:
	print('Mishka')
elif M < C:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = b = 0
for _ in range(int(input())):
	(c, d) = map(int, input().split())
	if c > d:
		a += 1
	if d > c:
		b += 1
if a == b:
	print('Friendship is magic!^^')
if b > a:
	print('Chris')
if a > b:
	print('Mishka')


t = int(input())
cm = 0
cc = 0
for i in range(t):
	(m, c) = map(int, input().split())
	if m > c:
		cm += 1
	if c > m:
		cc += 1
if cm > cc:
	print('Mishka')
elif cm < cc:
	print('Chris')
else:
	print('Friendship is magic!^^')


numberRounds = int(input())
(x, y) = (0, 0)
for i in range(numberRounds):
	array = input().split()
	if array[0] < array[1]:
		y += 1
	elif array[0] > array[1]:
		x += 1
if x > y:
	print('Mishka')
elif x < y:
	print('Chris')
else:
	print('Friendship is magic!^^')


totalRounds = int(input())
mishkaPoints = 0
chrisPoints = 0
for a in range(totalRounds):
	(mish, chri) = map(int, input().split())
	if mish > chri:
		mishkaPoints = mishkaPoints + 1
	elif mish < chri:
		chrisPoints = chrisPoints + 1
if mishkaPoints > chrisPoints:
	print('Mishka')
elif chrisPoints > mishkaPoints:
	print('Chris')
elif mishkaPoints == chrisPoints:
	print('Friendship is magic!^^')


from math import *
from collections import *
from itertools import *
from random import *

def getl(t=int):
	return [t(x) for x in input().split()]
alphabet = [chr(x) for x in range(ord('a'), ord('z') + 1)]
alnum = lambda x: ord(x) - ord('a')

def main():
	n = int(input())
	w1 = 0
	w2 = 0
	for i in range(n):
		(a, b) = getl()
		if a > b:
			w1 += 1
		elif b > a:
			w2 += 1
	if w1 > w2:
		print('Mishka')
	elif w2 > w1:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


import sys
from functools import lru_cache, cmp_to_key
from heapq import merge, heapify, heappop, heappush, nlargest, nsmallest, _heapify_max, _heapreplace_max
from math import ceil, floor, gcd, fabs, factorial, fmod, sqrt, inf, log
from collections import defaultdict as dd, deque, Counter as c
from itertools import combinations as comb, permutations as perm
from bisect import bisect_left as bl, bisect_right as br, bisect
from fractions import Fraction
mod = pow(10, 9) + 7
mod2 = 998244353

def data():
	return sys.stdin.readline().strip()

def out(*var, end='\n'):
	sys.stdout.write(' '.join(map(str, var)) + end)

def l():
	return list(sp())

def sl():
	return list(ssp())

def sp():
	return map(int, data().split())

def ssp():
	return map(str, data().split())

def l1d(n, val=0):
	return [val for i in range(n)]

def l2d(n, m, val=0):
	return [l1d(n, val) for j in range(m)]
(mishka, chris) = (0, 0)
for _ in range(int(data())):
	(a, b) = sp()
	if a > b:
		mishka += 1
	elif b > a:
		chris += 1
if mishka > chris:
	out('Mishka')
	exit()
if chris > mishka:
	out('Chris')
	exit()
out('Friendship is magic!^^')


from collections import Counter
cnt = Counter()
n = int(input())
for _ in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		cnt['m'] += 1
	elif m < c:
		cnt['c'] += 1
if cnt['m'] > cnt['c']:
	print('Mishka')
elif cnt['m'] < cnt['c']:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
s1 = 0
s2 = 0
for i in range(0, n):
	(m, c) = input().split()
	m = int(m)
	c = int(c)
	if m > c:
		s1 = s1 + 1
	elif c > m:
		s2 = s2 + 1
if s1 > s2:
	print('Mishka')
elif s1 < s2:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys

def main():
	n = int(sys.stdin.readline())
	(m, c) = (0, 0)
	for i in range(n):
		x = sys.stdin.readline().split()
		(a, b) = (int(x[0]), int(x[1]))
		if a > b:
			m += 1
		elif a < b:
			c += 1
	if m > c:
		print('Mishka')
	elif m < c:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


N = int(input())
m_cnt = 0
c_cnt = 0
for _ in range(N):
	(m, c) = map(int, input().split())
	if m > c:
		m_cnt += 1
	elif m < c:
		c_cnt += 1
if m_cnt > c_cnt:
	print('Mishka')
elif m_cnt < c_cnt:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
x = 0
y = 0
while n > 0:
	(a, b) = input().split()
	if a > b:
		x += 1
	elif b > a:
		y += 1
	n = n - 1
if x > y:
	print('Mishka')
elif y > x:
	print('Chris')
else:
	print('Friendship is magic!^^')


(m, c) = (0, 0)
for _ in range(int(input())):
	(t1, t2) = map(int, input().split())
	if t1 > t2:
		m += 1
	elif t1 < t2:
		c += 1
print(['Mishka', 'Chris'][m < c] if m != c else 'Friendship is magic!^^')


n = int(input())
a = b = A = B = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		A += 1
	elif a < b:
		B += 1
if A > B:
	print('Mishka')
elif A < B:
	print('Chris')
else:
	print('Friendship is magic!^^')


times = int(input())
mishka_pts = 0
chris_pts = 0
for time in range(times):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		mishka_pts += 1
	elif mishka < chris:
		chris_pts += 1
if mishka_pts > chris_pts:
	print('Mishka')
elif mishka_pts < chris_pts:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
(count1, count2) = (0, 0)
for i in range(t):
	(a, b) = map(int, input().split(' '))
	if a > b:
		count1 += 1
	elif a < b:
		count2 += 1
if count1 > count2:
	print('Mishka')
elif count1 < count2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
Mi = 0
Ch = 0
i = 0
while i < n:
	(m, c) = list(map(int, input().split()))
	if m > c:
		Mi += 1
	if m < c:
		Ch += 1
	i += 1
if Mi > Ch:
	print('Mishka')
elif Mi == Ch:
	print('Friendship is magic!^^')
else:
	print('Chris')


def main():
	from sys import stdin, stdout
	m = 0
	c = 0
	for _ in range(int(stdin.readline())):
		(a, b) = map(int, stdin.readline().split())
		if a > b:
			m += 1
		elif b > a:
			c += 1
	if c > m:
		stdout.write('Chris')
	elif c < m:
		stdout.write('Mishka')
	else:
		stdout.write('Friendship is magic!^^')
main()


n = int(input())
count1 = 0
count2 = 0
for i in range(n):
	l = list(map(int, input().split()))
	if l[0] > l[1]:
		count1 += 1
	elif l[1] > l[0]:
		count2 += 1
	else:
		count1 += 1
		count2 += 1
if count1 < count2:
	print('Chris')
elif count1 == count2:
	print('Friendship is magic!^^')
else:
	print('Mishka')


n = int(input())
cnt = 1
m_wins = 0
c_wins = 0
while cnt <= n:
	(m, c) = [int(x) for x in input().split(' ')]
	if m > c:
		m_wins += 1
	elif m < c:
		c_wins += 1
	else:
		pass
	cnt += 1
if m_wins == c_wins:
	print('Friendship is magic!^^')
elif m_wins > c_wins:
	print('Mishka')
else:
	print('Chris')


def func(n):
	m = 0
	c = 0
	for i in range(n):
		k = list(map(int, input().split()))
		if k[0] > k[1]:
			m += 1
		elif k[1] > k[0]:
			c += 1
	if m > c:
		print('Mishka')
	elif c > m:
		print('Chris')
	else:
		print('Friendship is magic!^^')
n = int(input())
func(n)


t = int(input())
(I, c, b) = ([], 0, 0)
for i in range(t):
	l = [int(i) for i in input().split()]
	I.append(l)
	if I[i][0] > I[i][1]:
		c += 1
	if I[i][0] < I[i][1]:
		b += 1
if c > b:
	print('Mishka')
elif c < b:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
l1 = 0
l2 = 0
avg = 0
for i in range(a):
	(b, c) = map(int, input().split())
	if b > c:
		l1 += 1
	elif b < c:
		l2 += 1
	else:
		avg += 1
if l1 > l2:
	print('Mishka')
elif l1 < l2:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
(cnt1, cnt2) = (0, 0)
while t > 0:
	(a, b) = [int(x) for x in input().split()]
	if a > b:
		cnt1 += 1
	elif b > a:
		cnt2 += 1
	t -= 1
if cnt1 > cnt2:
	print('Mishka')
elif cnt1 < cnt2:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
m = ch = 0
for i in range(a):
	(b, c) = input().split()
	if b > c:
		m += 1
	elif b == c:
		pass
	else:
		ch += 1
if m > ch:
	print('Mishka')
elif m == ch:
	print('Friendship is magic!^^')
else:
	print('Chris')


def d(l: list):
	(a, b) = l
	if a > b:
		return 1
	elif a < b:
		return -1
	else:
		return 0
n = int(input())
a = sum(list(map(d, [list(map(int, input().split())) for _ in range(n)])))
if a > 0:
	print('Mishka')
elif a < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


count = [0, 0]
for i in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		count[0] += 1
	elif c > m:
		count[1] += 1
	else:
		pass
if count[0] == count[1]:
	print('Friendship is magic!^^')
elif count[0] > count[1]:
	print('Mishka')
else:
	print('Chris')


from operator import sub
from typing import Callable, Iterator, List, TypeVar, cast
_F = TypeVar('_F', bound=Callable[[], None])
_I = TypeVar('_I', bound=Iterator[int])

def repeater(func: _F) -> _F:

	def wrapper():
		for _ in range(int(input())):
			func()
	return cast(_F, wrapper)

def get_num_input() -> _I:
	return map(int, input().split())

def score(diff: int) -> int:
	return diff // abs(diff) if diff else 0

def main() -> None:
	record: List[int] = [score(sub(*get_num_input())) for _ in range(int(input()))]
	print({1: 'Mishka', 0: 'Friendship is magic!^^', -1: 'Chris'}[score(sum(record))])
main()


n = int(input())
mPoint = 0
cPoint = 0
while n != 0:
	lst = [int(x) for x in input().split()]
	if lst[0] > lst[1]:
		mPoint += 1
	elif lst[1] > lst[0]:
		cPoint += 1
	n -= 1
if mPoint > cPoint:
	print('Mishka')
elif cPoint > mPoint:
	print('Chris')
else:
	print('Friendship is magic!^^')


import time
n = int(input())
ans_m = 0
ans_c = 0
for i in range(n):
	(m, c) = (int(i) for i in input().split())
	if m > c:
		ans_m += 1
	elif c > m:
		ans_c += 1
start = time.time()
if ans_m > ans_c:
	print('Mishka')
elif ans_m == ans_c:
	print('Friendship is magic!^^')
else:
	print('Chris')
finish = time.time()


import sys

def main():
	(n,) = stdin_get_ints_from_line()
	m = 0
	c = 0
	for round in range(n):
		(mi, ci) = stdin_get_ints_from_line()
		if mi > ci:
			m += 1
		elif mi < ci:
			c += 1
	if m > c:
		print('Mishka')
	elif m < c:
		print('Chris')
	else:
		print('Friendship is magic!^^')
	return

def stdin_get_ints_from_line():
	return (int(x) for x in sys.stdin.readline().strip().split(' '))

def stdin_get_ints_list_from_line():
	return list((int(x) for x in sys.stdin.readline().strip().split(' ')))

def stdin_get_string_from_line():
	return sys.stdin.readline().strip()
main()


def main():
	n = int(input())
	ans = [0, 0]
	while n > 0:
		(m, c) = map(int, input().split(' '))
		if m > c:
			ans[0] += 1
		elif c > m:
			ans[1] += 1
		n -= 1
	if ans[0] == ans[1]:
		print('Friendship is magic!^^')
	else:
		print('Mishka' if ans[0] > ans[1] else 'Chris')
main()


def main():
	t = int(input())
	m = 0
	c = 0
	for i in range(0, t):
		p = [int(x) for x in input().split()]
		x = p[0]
		y = p[1]
		if x > y:
			m += 1
		elif x < y:
			c += 1
	if m > c:
		print('Mishka')
	elif c > m:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


n = int(input())
count_m = 0
count_c = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		count_m += 1
	elif a < b:
		count_c += 1
if count_m > count_c:
	print('Mishka')
elif count_m < count_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


w = 0
for _ in range(int(input())):
	(M, C) = [int(i) for i in input().split()]
	if M > C:
		w += 1
	elif M < C:
		w -= 1
if w == 0:
	print('Friendship is magic!^^')
elif w > 0:
	print('Mishka')
else:
	print('Chris')


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


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


t = int(input())
li = []
(c, d) = (0, 0)
for i in range(t):
	(a, b) = map(int, input().split())
	if a > b:
		c += 1
	elif a < b:
		d += 1
	else:
		c += 1
		d += 1
if c > d:
	print('Mishka')
elif c < d:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input().strip())
s = 0
d = 0
for i in range(a):
	(m, c) = map(int, input().split())
	if m > c:
		s += 1
	elif c > m:
		d += 1
if s > d:
	print('Mishka')
elif d > s:
	print('Chris')
else:
	print('Friendship is magic!^^')


(n, inp, c) = (int(input()), [], 0)
for i in range(n):
	inp.append(input().split())
for i in inp:
	if i[0] > i[1]:
		c += 1
	elif i[0] < i[1]:
		c += -1
if c > 0:
	print('Mishka')
elif c < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = c = 0
for i in range(n):
	score = input().split()
	m += score[0] > score[1]
	c += score[0] < score[1]
print('Mishka' if m > c else ['Friendship is magic!^^', 'Chris'][m < c])


(mval, cval) = (0, 0)
for i in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		mval += 1
	elif c > m:
		cval += 1
if cval > mval:
	print('Chris')
elif mval > cval:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
cntM = cntC = 0
for _ in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		cntM += 1
	elif a < b:
		cntC += 1
if cntM > cntC:
	print('Mishka')
elif cntM < cntC:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(u, v) = (0, 0)
for _ in range(n):
	(x, y) = map(int, input().split(' '))
	if x > y:
		u += 1
	elif x < y:
		v += 1
if u > v:
	print('Mishka')
elif u < v:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
b = []
c = []
m = 0
n = 0
for i in range(a):
	k = input().split()
	d = int(k[0])
	e = int(k[1])
	b.append(d)
	c.append(e)
for i in range(a):
	if b[i] > c[i]:
		m += 1
	elif b[i] == c[i]:
		continue
	else:
		n += 1
if m > n:
	print('Mishka')
elif m < n:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
for i in range(n):
	n = input()
	if int(n[0]) > int(n[2]):
		m = m + 1
	if int(n[0]) < int(n[2]):
		c = c + 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


mPoints = 0
cPoints = 0
for round in range(int(input())):
	(m, c) = [int(a) for a in input().split()]
	if m > c:
		mPoints += 1
	elif c > m:
		cPoints += 1
if mPoints > cPoints:
	print('Mishka')
elif cPoints > mPoints:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka_count = 0
Chris_count = 0
d = []
l = []
for _ in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		mishka_count = mishka_count + 1
		l.append(mishka_count)
	elif a < b:
		Chris_count = Chris_count + 1
		d.append(Chris_count)
	else:
		l = l
		d = d
if len(l) > len(d):
	print('Mishka')
elif len(l) < len(d):
	print('Chris')
else:
	print('Friendship is magic!^^')


nop = int(input())
(M, C) = (0, 0)
while nop:
	nop -= 1
	(mi, ch) = map(int, input().split())
	if mi > ch:
		M += 1
	elif mi < ch:
		C += 1
	elif mi == ch:
		M += 1
		C += 1
if M == C:
	print('Friendship is magic!^^')
elif M > C:
	print('Mishka')
elif M < C:
	print('Chris')


t = int(input())
mishika = 0
chris = 0
while t:
	(m, c) = input().split()
	if int(m) > int(c):
		mishika += 1
	elif int(c) > int(m):
		chris += 1
	else:
		mishika += 1
		chris += 1
	t -= 1
if mishika > chris:
	print('Mishka')
elif chris > mishika:
	print('Chris')
else:
	print('Friendship is magic!^^')


(m_win, c_win) = (0, 0)
for i in range(0, int(input())):
	(m, c) = map(int, input().split(' '))
	if m > c:
		m_win += 1
	elif c > m:
		c_win += 1
if m_win > c_win:
	print('Mishka')
elif c_win > m_win:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input().strip())
m = 0
k = 0
for i in range(n):
	l = list(map(int, input().split()))
	if l[0] > l[1]:
		m += 1
	elif l[0] < l[1]:
		k += 1
if k < m:
	print('Mishka')
elif k > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
tot = 0
for i in range(n):
	game = input()
	game = game.split()
	if int(game[0]) > int(game[1]):
		tot += 1
	elif int(game[0]) < int(game[1]):
		tot -= 1
	else:
		tot += 0
if tot > 0:
	print('Mishka')
elif tot < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys
n = int(input())
count_m = 0
count_c = 0
for _ in range(n):
	(m, c) = map(int, sys.stdin.readline().split())
	if m > c:
		count_m += 1
	elif m < c:
		count_c += 1
if count_m > count_c:
	print('Mishka')
elif count_m < count_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka = 0
chris = 0
for x in range(0, n):
	(a, b) = input().split()
	if int(a) < int(b):
		chris = chris + 1
	elif int(a) > int(b):
		mishka = mishka + 1
if mishka == chris:
	print('Friendship is magic!^^')
elif mishka < chris:
	print('Chris')
else:
	print('Mishka')


n = int(input())
km = 0
kk = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		km += 1
	if b > a:
		kk += 1
if km > kk:
	print('Mishka')
elif kk > km:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import stdin, stdout
cnt = 0
for _ in range(int(stdin.readline())):
	(a, b) = map(int, stdin.readline().split())
	if a < b:
		cnt -= 1
	elif b < a:
		cnt += 1
res = ['Friendship is magic!^^\n', 'Chris\n', 'Mishka\n']
if cnt == 0:
	stdout.write(res[0])
elif cnt < 0:
	stdout.write(res[1])
elif cnt > 0:
	stdout.write(res[2])


a = int(input())
k = 0
while a > 0:
	b = [int(x) for x in input().split()]
	if b[0] > b[1]:
		k = k + 1
	if b[0] < b[1]:
		k = k - 1
	a = a - 1
if k > 0:
	print('Mishka')
if k < 0:
	print('Chris')
if k == 0:
	print('Friendship is magic!^^')


numGames = int(input())
mishkaWins = 0
chrisWins = 0
while numGames != 0:
	gameResult = input().split()
	if gameResult[0] > gameResult[1]:
		mishkaWins += 1
	elif gameResult[1] > gameResult[0]:
		chrisWins += 1
	numGames -= 1
if mishkaWins > chrisWins:
	print('Mishka')
elif mishkaWins < chrisWins:
	print('Chris')
else:
	print('Friendship is magic!^^')


r = []
for i in range(int(input(''))):
	r.append([int(i) for i in input('').split(' ')])
m = sum((i[0] > i[1] for i in r))
c = sum((i[1] > i[0] for i in r))
print('Mishka' if m > c else 'Chris' if c > m else 'Friendship is magic!^^')


n = int(input())
cc = 0
cm = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		cm += 1
	elif a < b:
		cc += 1
if cm > cc:
	print('Mishka')
elif cc > cm:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
c = []
for i in range(n):
	(j, k) = map(int, input().split())
	if j > k:
		c.append(1)
	elif j == k:
		c.append(0)
	else:
		c.append(-1)
if sum(c) > 0:
	print('Mishka')
elif sum(c) == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
l = []
while n != 0:
	(m, c) = map(int, input().split())
	if m > c:
		l.append('M')
	elif m < c:
		l.append('C')
	n = n - 1
M = l.count('M')
C = l.count('C')
if M > C:
	print('Mishka')
elif C > M:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
sx = 0
sy = 0
for i in range(0, n):
	(x, y) = map(int, input().split())
	sx += x > y
	sx -= x < y
if sx > 0:
	print('Mishka')
else:
	print('Chris' if sx < 0 else 'Friendship is magic!^^')


n = int(input())
(f, d, e) = (0, 0, 0)
a = []
for x in range(n):
	(m, c) = input().split()
	if m > c:
		f += 1
	elif m < c:
		d += 1
	else:
		e += 1
if f > d:
	print('Mishka')
elif f < d:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
(m_flag, c_flag) = (0, 0)
for i in range(rounds):
	(m, c) = map(int, input().split(' '))
	if m > c:
		m_flag += 1
	elif m < c:
		c_flag += 1
if m_flag > c_flag:
	print('Mishka')
elif m_flag < c_flag:
	print('Chris')
else:
	print('Friendship is magic!^^')


no = int(input())
res = 0
for i in range(no):
	k = input().split()
	if int(k[0]) > int(k[1]):
		res += 1
	elif int(k[0]) < int(k[1]):
		res -= 1
if res > 0:
	print('Mishka')
elif res < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
r = 0
for _ in range(n):
	(a, b) = map(int, input().split())
	if a < b:
		r -= 1
	if a > b:
		r += 1
print('Mishka' if r > 0 else 'Chris' if r < 0 else 'Friendship is magic!^^')


class Mishka:

	def __init__(self, arr, n):
		self.a = arr
		self.n = n
		self.countA = 0
		self.countB = 0

	def counting(self):
		for i in range(self.n):
			if self.a[i][0] > self.a[i][1]:
				self.countA += 1
			elif self.a[i][0] < self.a[i][1]:
				self.countB += 1
			else:
				continue
		return (self.countA, self.countB)

	def result(self):
		(countA, countB) = self.counting()
		if countA > countB:
			return 'Mishka'
		elif countA < countB:
			return 'Chris'
		return 'Friendship is magic!^^'

def main():
	n = int(input())
	arr = []
	for i in range(n):
		arr.append(list(map(int, input().split())))
	re = Mishka(arr, n)
	print(re.result())
main()


n = int(input())
M = 0
Ch = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		M += 1
	elif a < b:
		Ch += 1
if M > Ch:
	print('Mishka')
elif Ch > M:
	print('Chris')
else:
	print('Friendship is magic!^^')


def A703():
	n = int(input())
	mi = ci = 0
	for i in range(n):
		(m, n) = map(int, input().split())
		if m > n:
			mi += 1
		elif m == n:
			pass
		else:
			ci += 1
	if mi > ci:
		print('Mishka')
	elif mi < ci:
		print('Chris')
	else:
		print('Friendship is magic!^^')
A703()


n = int(input())
mis = 0
cr = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		mis += 1
	elif b > a:
		cr += 1
if mis > cr:
	print('Mishka')
elif cr > mis:
	print('Chris')
else:
	print('Friendship is magic!^^')


c1 = 0
c2 = 0
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		c1 = c1 + 1
	elif a < b:
		c2 = c2 + 1
	else:
		continue
if c1 == c2:
	print('Friendship is magic!^^')
elif c1 > c2:
	print('Mishka')
else:
	print('Chris')


n = int(input())
(cc, cm) = (0, 0)
for i in range(n):
	l = list(map(int, input().split()))
	if l[0] == l[1]:
		continue
	elif l[0] > l[1]:
		cm += 1
	else:
		cc += 1
if cm == cc:
	print('Friendship is magic!^^')
elif cm > cc:
	print('Mishka')
else:
	print('Chris')


n = int(input())
sa = 0
sb = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		sa += 1
	elif a < b:
		sb += 1
if sa > sb:
	print('Mishka')
elif sa < sb:
	print('Chris')
else:
	print('Friendship is magic!^^')


q = int(input())
mres = 0
kres = 0
for _ in range(q):
	(m, k) = input().split()
	if m > k:
		mres += 1
	elif m < k:
		kres += 1
print('Mishka' if mres > kres else 'Chris' if kres > mres else 'Friendship is magic!^^')


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


inp = input
li = list
iinp = lambda : int(inp())
ent = lambda : map(int, inp().split())
lient = lambda : [int(i) for i in inp().split()]
li0 = lambda x: [0 for i in range(x)]
n = iinp()
mi = ch = 0
for i in range(n):
	(a, b) = ent()
	if a > b:
		mi += 1
	elif b > a:
		ch += 1
if mi > ch:
	print('Mishka')
elif ch > mi:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
s = 0
for i in range(n):
	(x, y) = input().split()
	x = int(x)
	y = int(y)
	if x > y:
		s += 1
	elif x < y:
		s -= 1
if s == 0:
	print('Friendship is magic!^^')
elif s > 0:
	print('Mishka')
else:
	print('Chris')


r = int(input())
m = 0
c = 0
for i in range(r):
	(a, b) = map(lambda x: int(x), input().split())
	if a > b:
		m += 1
	elif b > a:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


def jud(x, y):
	if x > y:
		print('Mishka')
	elif x == y:
		print('Friendship is magic!^^')
	else:
		print('Chris')
n = int(input())
M = 0
C = 0
for i in range(n):
	s = input().split()
	a = int(s[0])
	b = int(s[1])
	if a > b:
		M += 1
	elif a < b:
		C += 1
jud(M, C)


class game:

	def __init__(self, m, c):
		self.m = m
		self.c = c
n = int(input())
a = []
for i in range(n):
	(m, c) = map(int, input().split())
	temp = game(m, c)
	a.append(temp)
miskha = 0
chris = 0
for i in a:
	if i.m > i.c:
		miskha += 1
	elif i.c > i.m:
		chris += 1
if miskha > chris:
	print('Mishka')
elif miskha == chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


scores = 0
for _ in range(int(input())):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		scores += 1
	elif chris > mishka:
		scores -= 1
if scores > 0:
	print('Mishka')
elif scores < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


N = int(input())
score = 0
for i in range(0, N):
	(a, b) = input().split(' ')
	if a < b:
		score -= 1
	elif a > b:
		score += 1
if score > 0:
	print('Mishka')
elif score < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import stdin

def solution(rounds):
	m = 0
	c = 0
	for scores in rounds:
		if scores[0] > scores[1]:
			m += 1
		elif scores[0] < scores[1]:
			c += 1
	if m > c:
		print('Mishka')
	elif m < c:
		print('Chris')
	else:
		print('Friendship is magic!^^')
testcases = []
for line in stdin:
	testcases.append(list(map(int, line.split())))
solution(testcases[1:])


n = int(input())
a = 0
b = 0
for w in range(n):
	(c, d) = map(int, input().split())
	if c > d:
		a += 1
	elif c < d:
		b += 1
if a == b:
	print('Friendship is magic!^^')
elif a > b:
	print('Mishka')
else:
	print('Chris')


def ver(a):
	return 1 if a[0] > a[1] else 0 if a[0] == a[1] else -1
w = sum([ver([int(n) for n in input().split()]) for i in range(int(input()))])
print('Chris' if w < 0 else 'Mishka' if w else 'Friendship is magic!^^')


n = int(input())
mishka = 0
chriss = 0
for x in range(n):
	a = input()
	if a[0] < a[2]:
		mishka += 1
	elif a[0] > a[2]:
		chriss += 1
if mishka < chriss:
	print('Mishka')
elif mishka > chriss:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
msh = cr = 0
for i in range(n):
	(m, c) = list(map(int, input().split()))
	if m == c:
		continue
	if max(m, c) == m:
		msh += 1
	if max(m, c) == c:
		cr += 1
if msh < cr:
	print('Chris')
elif cr < msh:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
l = []
a = 0
b = 0
for i in range(n):
	l.append(list(map(int, input().split())))
	if l[i][0] > l[i][1]:
		a += 1
	elif l[i][0] < l[i][1]:
		b += 1
if a > b:
	print('Mishka')
elif b > a:
	print('Chris')
else:
	print('Friendship is magic!^^')


countm = 0
countc = 0
for i in range(0, int(input())):
	(m, c) = [int(x) for x in input().split()]
	if m > c:
		countm += 1
	elif c > m:
		countc += 1
if countm > countc:
	print('Mishka')
elif countm == countc:
	print('Friendship is magic!^^')
elif countm < countc:
	print('Chris')


a = int(input())
i = 1
h = 0
g = 0
while i <= a:
	(b, c) = map(int, input().split())
	if b > c:
		h = h + 1
	elif b < c:
		g = g + 1
	i = i + 1
if h > g:
	print('Mishka')
elif h < g:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
M = C = 0
for t in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		M += 1
	elif c > m:
		C += 1
if M > C:
	print('Mishka')
elif M < C:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
(Mishka, Chris) = (0, 0)
while t:
	t -= 1
	(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 Mishka < Chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


from collections import *
N = int(input())
Lst = deque()
Lst1 = deque()
for _ in range(N):
	(M, C) = map(int, input().split())
	if M > C:
		Lst.append(1)
	elif C > M:
		Lst1.append(1)
	else:
		Lst.append(0)
		Lst1.append(0)
if len(Lst) > len(Lst1):
	print('Mishka')
elif len(Lst1) > len(Lst):
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(c_m, c_c) = (0, 0)
while n:
	(m, c) = map(int, input().split())
	if m > c:
		c_m += 1
	elif m < c:
		c_c += 1
	n -= 1
if c_m > c_c:
	print('Mishka')
elif c_m < c_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


tCases = int(input())
results = []
mWin = 0
cWin = 0
for x in range(tCases):
	temp = list(map(int, input().split()))
	results.append(temp)
for x in results:
	if x[0] > x[1]:
		mWin += 1
	elif x[0] < x[1]:
		cWin += 1
if mWin > cWin:
	print('Mishka')
elif mWin < cWin:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
winm = 0
winc = 0
for _ in range(n):
	(m, c) = input().split()
	if m > c:
		winm += 1
	if c > m:
		winc += 1
if winc > winm:
	print('Chris')
if winm > winc:
	print('Mishka')
if winc == winm:
	print('Friendship is magic!^^')


import sys
n = int(input())
m = c = d = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		m += 1
	elif b > a:
		c += 1
	else:
		d += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
list_x = []
list_y = []
for i in range(n):
	(x, y) = map(int, input().split())
	list_x.append(x)
	list_y.append(y)
count_x = 0
count_y = 0
for j in range(n):
	if list_x[j] > list_y[j]:
		count_x += 1
	elif list_y[j] > list_x[j]:
		count_y += 1
max_ = max(count_x, count_y)
if max_ == count_x and max_ == count_y:
	print('Friendship is magic!^^')
elif max_ == count_x:
	print('Mishka')
else:
	print('Chris')


n = int(input())
mishka = 0
chris = 0
for i in range(0, n):
	inp = list(map(int, input().split()))
	if inp[0] > inp[1]:
		mishka = mishka + 1
	elif inp[0] < inp[1]:
		chris = chris + 1
if mishka > chris:
	print('Mishka')
elif mishka < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


class Turn:

	def __init__(self, m, c):
		self.m = m
		self.c = c

	def calc(self):
		if self.m > self.c:
			return 1
		elif self.m < self.c:
			return -1
		return 0
n = int(input())
res = 0
for i in range(n):
	(m, c) = map(int, input().split(' '))
	res = res + Turn(m, c).calc()
print('Mishka' if res > 0 else 'Chris' if res < 0 else 'Friendship is magic!^^')


n = int(input())
m_wins = 0
c_wins = 0
for i in range(n):
	(z1, z2) = list(map(int, input().split()))
	if z1 > z2:
		m_wins += 1
	elif z2 > z1:
		c_wins += 1
if m_wins > c_wins:
	print('Mishka')
elif c_wins > m_wins:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
rm = 0
rc = 0
for i in range(n):
	a = input().split()
	m = int(a[0])
	c = int(a[1])
	if m > c:
		rm += 1
	elif c > m:
		rc += 1
	else:
		rm += 1
		rc += 1
if rm > rc:
	print('Mishka')
elif rc > rm:
	print('Chris')
else:
	print('Friendship is magic!^^')


c = 0
for i in ' ' * int(input()):
	(a, b) = input().split()
	if a > b:
		c += 1
	elif a < b:
		c -= 1
print((('Friendship is magic!^^', 'Chris')[bool(c)], 'Mishka')[c > 0])


n = int(input())
a = []
for i in range(n):
	a.append([int(i) for i in input().split()])
tmishka = 0
tchris = 0
for i in a:
	if i[0] > i[1]:
		tmishka += 1
	elif i[0] < i[1]:
		tchris += 1
	else:
		pass
if tmishka > tchris:
	print('Mishka')
elif tmishka < tchris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
c1 = 0
c2 = 0
for i in range(n):
	a = [int(x) for x in input().split()]
	if a[0] == a[1]:
		c1 = c1 + 1
		c2 = c2 + 1
	elif a[0] > a[1]:
		c1 = c1 + 1
	else:
		c2 = c2 + 1
if c1 == c2:
	print('Friendship is magic!^^')
elif c1 > c2:
	print('Mishka')
else:
	print('Chris')


t = int(input())
q = []
for i in range(t):
	r = list(map(int, input().split()))
	q.append(r)
m = 0
c = 0
for i in range(t):
	if q[i][0] > q[i][1]:
		m += 1
	elif q[i][0] < q[i][1]:
		c += 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
else:
	print('Chris')


def signum(x):
	return (x > 0) - (x < 0)
res = sum((signum(mci[0] - mci[1]) for mci in [tuple(map(int, input().split())) for _ in range(int(input()))]))
if res > 0:
	print('Mishka')
elif res < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
chris = 0
mishka = 0
draw = 0
for _ in range(n):
	(a, b) = list(map(int, input().strip().split(' ')))
	if a > b:
		mishka += 1
	elif a < b:
		chris += 1
	else:
		draw += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


class RollingTurn:

	def __init__(self, m, c):
		self.m = m
		self.c = c

	def compare(self):
		if self.m > self.c:
			return 'm'
		elif self.m < self.c:
			return 'c'
		else:
			return 'n'
number_of_rollings = int(input())
results = []
for _ in range(number_of_rollings):
	(m, c) = map(int, input().split())
	rolling = RollingTurn(m, c)
	results.append(rolling.compare())
if results.count('m') > results.count('c'):
	print('Mishka')
elif results.count('m') < results.count('c'):
	print('Chris')
else:
	print('Friendship is magic!^^')


def r(t=int):
	return list(map(t, input().split()))

def ri(t=int):
	return t(input())

def cd(it):
	ret_val = dict()
	for v in it:
		ret_val[v] = ret_val.get(v, 0) + 1
	return ret_val
ans = 0
for _ in range(ri()):
	(a, b) = r()
	if a > b:
		ans += 1
	if a < b:
		ans -= 1
if ans == 0:
	print('Friendship is magic!^^')
if ans > 0:
	print('Mishka')
if ans < 0:
	print('Chris')


n = int(input())
pM = 0
pK = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a - b > 0:
		pM = pM + 1
	if b - a > 0:
		pK = pK + 1
	if a == b:
		pK = pK
		pM = pM
if pM > pK:
	print('Mishka')
if pK > pM:
	print('Chris')
if pM == pK:
	print('Friendship is magic!^^')


in1 = int(input())
m = 0
c = 0
for i in range(in1):
	in2 = input().split()
	in2 = list(map(int, in2))
	if in2[0] > in2[1]:
		m = m + 1
	if in2[1] > in2[0]:
		c = c + 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count1 = 0
count2 = 0
for i in range(n):
	(n, k) = map(int, input().split())
	if n > k:
		count1 = count1 + 1
	if k > n:
		count2 = count2 + 1
if count1 > count2:
	print('Mishka')
if count2 > count1:
	print('Chris')
if count1 == count2:
	print('Friendship is magic!^^')


countm = 0
countc = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		countm = countm + 1
	elif c > m:
		countc = countc + 1
if countm > countc:
	print('Mishka')
elif countc > countm:
	print('Chris')
elif countm == countc:
	print('Friendship is magic!^^')


def answer():
	n = int(input())
	mishka = 0
	chris = 0
	while n:
		b = input().split()
		b = [int(x) for x in b]
		if b[0] > b[1]:
			mishka += 1
		elif b[1] > b[0]:
			chris += 1
		n -= 1
	if mishka > chris:
		ans = 'Mishka'
	elif mishka == chris:
		ans = 'Friendship is magic!^^'
	else:
		ans = 'Chris'
	return ans
print(answer())


count = 0
for _ in range(int(input())):
	(n1, n2) = list(map(int, input().split()))
	if n1 > n2:
		count += 1
	elif n1 < n2:
		count -= 1
if count > 0:
	print('Mishka')
elif count < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka = kris = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		mishka += 1
	elif b > a:
		kris += 1
if mishka > kris:
	print('Mishka')
elif kris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


n = int(input())
M = 0
C = 0
for i in range(n):
	(m, c) = [int(x) for x in input().split()]
	if m > c:
		M += 1
	if m < c:
		C += 1
if M > C:
	print('Mishka')
if M < C:
	print('Chris')
if M == C:
	print('Friendship is magic!^^')


n = int(input())
s = []
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		s.append('m')
	if c > m:
		s.append('c')
m = s.count('m')
c = s.count('c')
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	mishka = chris = 0
	for i in range(int(input())):
		(a, b) = input().split()
		if a > b:
			mishka += 1
		elif b > a:
			chris += 1
	if mishka > chris:
		print('Mishka')
	elif chris > mishka:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


n = int(input())
m_wins = int(0)
c_wins = int(0)
for i in range(n):
	(m, c) = [int(j) for j in input().split()]
	if m > c:
		m_wins += 1
	elif c > m:
		c_wins += 1
if m_wins > c_wins:
	print('Mishka')
elif c_wins > m_wins:
	print('Chris')
elif m_wins == c_wins:
	print('Friendship is magic!^^')


(mish, chris) = (0, 0)
for _ in range(int(input())):
	(s1, s2) = map(int, input().split())
	if s1 > s2:
		mish += 1
	elif s2 > s1:
		chris += 1
if mish > chris:
	print('Mishka')
elif chris > mish:
	print('Chris')
else:
	print('Friendship is magic!^^')


tot = int(input())
skor_m = 0
skor_c = 0
for i in range(tot):
	play = [int(i) for i in input().split(' ')]
	if play[0] > play[1]:
		skor_m += 1
	elif play[0] < play[1]:
		skor_c += 1
	else:
		continue
if skor_m > skor_c:
	print('Mishka')
elif skor_m < skor_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
win_m = win_c = 0
result = ['Mishka', 'Chris', 'Friendship is magic!^^']
while n:
	(m, c) = map(int, input().split())
	win_m += m >= c
	win_c += m <= c
	n -= 1
print(result[2] if win_c == win_m else result[win_m < win_c])


numberOfGames = int(input())
games = [list(map(int, input().split())) for i in range(numberOfGames)]
count = 0
for game in games:
	if game[1] - game[0] > 0:
		count += 1
	elif game[1] - game[0] < 0:
		count -= 1
print('Mishka' if count < 0 else 'Chris' if count > 0 else 'Friendship is magic!^^')


def mishka(lst):
	(count1, count2) = (0, 0)
	for elem in lst:
		if elem[0] > elem[1]:
			count1 += 1
		if elem[0] < elem[1]:
			count2 += 1
	if count1 > count2:
		return 'Mishka'
	elif count2 > count1:
		return 'Chris'
	return 'Friendship is magic!^^'
n = int(input())
a = list()
for i in range(n):
	(s, t) = [int(i) for i in input().split()]
	a.append([s, t])
print(mishka(a))


t = int(input())
ans = 0
for _ in range(t):
	(a, b) = list(map(int, input().split()))
	if a > b:
		ans += 1
	elif a < b:
		ans -= 1
	else:
		pass
print('Friendship is magic!^^' if ans == 0 else 'Mishka' if ans > 0 else 'Chris')


n = int(input())
(mishka, chris, draw) = (0, 0, 0)
(mList, cList) = ([], [])
for i in range(n):
	(mi, ci) = input().split()
	(mi, ci) = (int(mi), int(ci))
	mList.append(mi)
	cList.append(ci)
for i in range(n):
	if mList[i] > cList[i]:
		mishka += 1
	elif mList[i] < cList[i]:
		chris += 1
	else:
		draw += 1
if mishka > chris:
	print('Mishka')
elif mishka < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


n = int(input())
mres = 0
cres = 0
for _ in range(n):
	lst = list(map(int, input().split()))
	(m, c) = (lst[0], lst[1])
	if m > c:
		mres += 1
	elif m < c:
		cres += 1
if mres > cres:
	print('Mishka')
elif mres < cres:
	print('Chris')
elif mres == cres:
	print('Friendship is magic!^^')


n = int(input())
mc = 0
cc = 0
for i in range(0, n):
	(m, c) = map(int, input().split())
	if m > c:
		mc += 1
	if c > m:
		cc += 1
if mc > cc:
	print('Mishka')
if cc > mc:
	print('Chris')
if mc == cc:
	print('Friendship is magic!^^')


games = int(input(''))
ans = 0
for i in range(games):
	dice = input('').split()
	if int(dice[0]) > int(dice[1]):
		ans += 1
	if int(dice[1]) > int(dice[0]):
		ans -= 1
if ans > 0:
	print('Mishka')
elif ans < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
for i in range(n):
	(a, b) = [int(x) for x in input().split()]
	if a > b:
		m += 1
	if a < b:
		c += 1
if m > c:
	print('Mishka')
if c > m:
	print('Chris')
if c == m:
	print('Friendship is magic!^^')


ts = int(input())
mis = 0
chi = 0
while ts > 0:
	(a, b) = map(int, input().split())
	if a > b:
		mis += 1
	elif b > a:
		chi += 1
	ts -= 1
if mis > chi:
	print('Mishka')
elif mis < chi:
	print('Chris')
else:
	print('Friendship is magic!^^')
	ts -= 1


k = 0
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	k += a > b
	k -= a < b
print('Mishka' if k > 0 else ['Friendship is magic!^^', 'Chris'][k < 0])


n = int(input())
s1 = 0
s2 = 0
for i in range(n):
	s = list(map(int, input().split()))
	if s[0] > s[1]:
		s1 += 1
	elif s[1] > s[0]:
		s2 += 1
if s1 > s2:
	print('Mishka')
elif s2 > s1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mwin = cwin = 0
for i in range(n):
	(m, c) = input().split()
	(m, c) = (int(m), int(c))
	if m > c:
		mwin += 1
	elif c > m:
		cwin += 1
if mwin > cwin:
	print('Mishka')
elif cwin > mwin:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input(''))
cont = 0
cont1 = 0
for k in range(n):
	(a, b) = map(int, input().split(' '))
	if a > b:
		cont += 1
	elif b > a:
		cont1 += 1
if cont > cont1:
	print('Mishka')
elif cont1 > cont:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
k = 0
for i in range(n):
	(a, b) = [int(s) for s in input().split()]
	if a > b:
		k += 1
	elif a < b:
		k -= 1
if k > 0:
	print('Mishka')
elif k < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


class trocho:

	def __init__(self, n, ls):
		self.n = n
		self.ls = ls

	def timnguoithang(self):
		a = 0
		b = 0
		for i in range(self.n):
			if self.ls[i][0] > self.ls[i][1]:
				a += 1
			elif self.ls[i][0] < self.ls[i][1]:
				b += 1
		if a > b:
			print('Mishka')
		elif b > a:
			print('Chris')
		else:
			print('Friendship is magic!^^')

def main():
	n = int(input())
	ls = []
	for i in range(n):
		ls.append(list(map(int, input().split())))
	game = trocho(n, ls)
	game.timnguoithang()
main()


N = int(input())
(ansM, ansC) = (0, 0)
for _ in range(N):
	(M, C) = map(int, input().split())
	if M > C:
		ansM += 1
	elif C > M:
		ansC += 1
if ansM == ansC:
	print('Friendship is magic!^^')
elif ansM > ansC:
	print('Mishka')
elif ansC > ansM:
	print('Chris')


n = int(input())
m = 0
c = 0
for i in range(n):
	(ms, cs) = [int(i) for i in input().split()]
	m += int(ms > cs)
	c += int(cs > ms)
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mi_a = 0
kr_s = 0
for i in range(n):
	(m_i, c_i) = map(int, input().split())
	if m_i > c_i:
		mi_a += 1
	elif m_i < c_i:
		kr_s += 1
if mi_a > kr_s:
	print('Mishka')
elif mi_a < kr_s:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
i = 0
j = 0
for _ in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		i += 1
	elif a < b:
		j += 1
if i == j:
	print('Friendship is magic!^^')
elif i < j:
	print('Chris')
else:
	print('Mishka')


rounds = int(input())
mishka_score = chris_score = 0
for i in range(rounds):
	(m, c) = input().split()
	if m > c:
		mishka_score += 1
	elif m < c:
		chris_score += 1
if mishka_score > chris_score:
	print('Mishka')
elif mishka_score < chris_score:
	print('Chris')
else:
	print('Friendship is magic!^^')


case = int(input())
m = 0
c = 0
for i in range(case):
	(x, y) = (int(v) for v in input().split())
	if x > y:
		m += 1
	elif x < y:
		c += 1
	else:
		pass
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = int(input())
m = 0
c = 0
for i in range(x):
	(e, n) = tuple(map(int, input().split()))
	if e < n:
		c += 1
	elif e > n:
		m += 1
	else:
		continue
if m < c:
	print('Chris')
elif m > c:
	print('Mishka')
else:
	print('Friendship is magic!^^')


import pdb
(a, b, c) = (0, 0, 0)
for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x > y:
		a += 1
	elif x < y:
		b += 1
	elif x == y:
		c += 1
if a > b:
	print('Mishka')
elif a < b:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
M = 0
C = 0
for i in range(0, n):
	(a, b) = input().split()
	if a > b:
		M += 1
	elif a < b:
		C += 1
	else:
		pass
if M > C:
	print('Mishka')
elif M < C:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(a, b) = (0, 0)
for _ in range(n):
	(u, v) = map(int, input().split())
	if u > v:
		a += 1
	elif u < v:
		b += 1
if a > b:
	print('Mishka')
elif a < b:
	print('Chris')
else:
	print('Friendship is magic!^^')


ans = 0
n = int(input())
for i in range(n):
	[tmishika, tchris] = list(map(int, input().split()))
	if tmishika > tchris:
		ans += 1
	elif tmishika < tchris:
		ans -= 1
if ans > 0:
	print('Mishka', end='')
elif ans == 0:
	print('Friendship is magic!^^', end='')
else:
	print('Chris', end='')


n = int(input())
a = [list(map(int, input().split())) for i in range(n)]
m = sum([a[i][0] > a[i][1] for i in range(n)])
c = sum([a[i][0] < a[i][1] for i in range(n)])
if m > c:
	print('Mishka')
elif m == c:
	print('Friendship is magic!^^')
else:
	print('Chris')


x = 0
for _ in range(int(input())):
	(a, c) = map(int, input().split())
	x += a > c
	x -= a < c
print('Mishka' if x > 0 else ['Friendship is magic!^^', 'Chris'][x < 0])


import sys
n = int(sys.stdin.readline().split()[0])
rounds = [[0 for x in range(2)] for y in range(n)]
row = 0
for line in sys.stdin:
	column = 0
	for word in line.split():
		rounds[row][column] = int(word)
		column += 1
	row += 1
i = 0
Mishka = 0
Chris = 0
while i < n:
	if rounds[i][0] > rounds[i][1]:
		Mishka += 1
	if rounds[i][0] < rounds[i][1]:
		Chris += 1
	i += 1
if Mishka > Chris:
	print('Mishka')
elif Mishka < Chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


ct1 = ct2 = 0
for y in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		ct1 += 1
	elif b > a:
		ct2 += 1
if ct1 > ct2:
	print('Mishka')
elif ct2 > ct1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m_cnt = 0
c_cnt = 0
for i in range(n):
	(m, c) = map(int, input().strip().split())
	if m > c:
		m_cnt += 1
	elif m < c:
		c_cnt += 1
if m_cnt > c_cnt:
	print('Mishka')
elif m_cnt < c_cnt:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = []
while True:
	try:
		a.append(input())
	except:
		break
n = int(a[0])
m = 0
c = 0
for i in range(1, len(a)):
	for j in range(len(a[i])):
		if a[i][0] < a[i][2]:
			c += 1
		elif a[i][0] > a[i][2]:
			m += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
l = []
for i in range(t):
	z = [int(i) for i in input().split()]
	l.append(z)
mis = 0
chris = 0
for i in range(t):
	if l[i][0] > l[i][1]:
		mis += 1
	elif l[i][0] == l[i][1]:
		pass
	else:
		chris += 1
if mis > chris:
	print('Mishka')
elif mis == chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


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


x = int(input())
y = []
m = 0
a = 0
for i in range(0, x):
	y.append(input().split(' '))
for j in y:
	for k in j:
		list(map(int, k))
for j in y:
	if j[0] > j[1]:
		m += 1
	elif j[0] < j[1]:
		a += 1
	else:
		pass
if m > a:
	print('Mishka')
elif m < a:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
rounds = []
for i in range(n):
	rounds.append(list(map(int, input().split())))
m = len([r for r in rounds if r[0] > r[1]])
c = len([r for r in rounds if r[0] < r[1]])
print('Mishka' if m > c else 'Chris' if c > m else 'Friendship is magic!^^')


n = int(input())
mCnt = 0
cCnt = 0
i = 0
while i < n:
	(m, c) = map(int, input().split())
	if m > c:
		mCnt = mCnt + 1
	elif m < c:
		cCnt = cCnt + 1
	i = i + 1
if mCnt > cCnt:
	print('Mishka')
elif mCnt < cCnt:
	print('Chris')
else:
	print('Friendship is magic!^^')


number = int(input())
counterA = 0
counterB = 0
for i in range(number):
	first = list(map(int, input().split()))
	if first[0] > first[1]:
		counterA += 1
	elif first[0] < first[1]:
		counterB += 1
if counterA > counterB:
	print('Mishka')
elif counterB > counterA:
	print('Chris')
else:
	print('Friendship is magic!^^')


def ll():
	return list(map(int, input().split()))

def l():
	return int(input())
n = l()
c = 0
t = 0
for i in range(n):
	s = ll()
	if s[0] > s[1]:
		c += 1
	elif s[1] > s[0]:
		t += 1
if c > t:
	print('Mishka')
elif c < t:
	print('Chris')
else:
	print('Friendship is magic!^^')


(mishka, chris, n) = ([], [], int(input()))
for i in range(n):
	(a, b) = list(map(int, input().split(' ')))
	mishka.append(a)
	chris.append(b)
suma = sum((1 if mishka[i] > chris[i] else 0 for i in range(n)))
sumb = sum((1 if mishka[i] < chris[i] else 0 for i in range(n)))
if suma == sumb:
	print('Friendship is magic!^^')
elif suma > sumb:
	print('Mishka')
else:
	print('Chris')


import sys
n = int(input())
mc = cc = 0
for rounds in range(n):
	(m, c) = map(int, sys.stdin.readline().split())
	if m > c:
		mc += 1
	elif c > m:
		cc += 1
if mc > cc:
	print('Mishka')
elif cc > mc:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys
from random import choice, randint
inp = sys.stdin.readline
out = sys.stdout.write
flsh = sys.stdout.flush
sys.setrecursionlimit(10 ** 9)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def MI():
	return map(int, inp().strip().split())

def LI():
	return list(map(int, inp().strip().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]

def LI_():
	return [int(x) - 1 for x in inp().strip().split()]

def LF():
	return [float(x) for x in inp().strip().split()]

def LS():
	return inp().strip().split()

def I():
	return int(inp().strip())

def F():
	return float(inp().strip())

def S():
	return inp().strip()

def pf(s):
	return out(s + '\n')

def JA(a, sep):
	return sep.join(map(str, a))

def JAA(a, s, t):
	return s.join((t.join(map(str, b)) for b in a))

def main():
	n = I()
	(c1, c2) = (0, 0)
	for i in range(n):
		(m, c) = MI()
		if m > c:
			c1 += 1
		if m < c:
			c2 += 1
	if c1 > c2:
		pf('Mishka')
	elif c1 < c2:
		pf('Chris')
	else:
		pf('Friendship is magic!^^')
main()


cin = input()
n = int(cin)
mi = 0
ch = 0
for i in range(1, n + 1, 1):
	c1 = input()
	a = int(c1[0])
	b = int(c1[2])
	if a > b:
		mi = mi + 1
	if b > a:
		ch = ch + 1
if mi > ch:
	print('Mishka')
if mi < ch:
	print('Chris')
if mi == ch:
	print('Friendship is magic!^^')


t = int(input())
m = 0
c = 0
for q in range(t):
	(x, y) = [int(x) for x in input().split()]
	if x > y:
		m += 1
	elif x < y:
		c += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


string = input()
ls = list(map(int, string.split(' ')))
m = 0
c = 0
while ls[0]:
	(a, b) = input().split()
	a = int(a)
	b = int(b)
	if a > b:
		m += 1
	elif a < b:
		c += 1
	ls[0] -= 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
num1 = 0
num2 = 0
for i in range(0, n):
	(m, k) = input().split()
	m = int(m)
	k = int(k)
	if m > k:
		num1 = num1 + 1
	elif m < k:
		num2 = num2 + 1
if num1 > num2:
	print('Mishka')
elif num1 == num2:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
lis = [0, 0]
for i in range(n):
	tmp = [int(j) for j in input().split()]
	if tmp[0] > tmp[1]:
		lis[0] += 1
	if tmp[0] < tmp[1]:
		lis[1] += 1
if lis[0] == lis[1]:
	print('Friendship is magic!^^')
elif lis[0] > lis[1]:
	print('Mishka')
else:
	print('Chris')


n = int(input())
M = 0
C = 0
for j in range(n):
	l = [int(i) for i in input().split()]
	if l[0] < l[1]:
		C += 1
	if l[0] > l[1]:
		M += 1
if M == C:
	print('Friendship is magic!^^')
elif M > C:
	print('Mishka')
else:
	print('Chris')


no = int(input())
Mishka = Chris = 0
m = []
c = []
for each in range(no):
	(a, b) = input().split()
	m.append(int(a))
	c.append(int(b))
for each in range(no):
	if m[each] > c[each]:
		Mishka += 1
	if m[each] < c[each]:
		Chris += 1
if Mishka < Chris:
	print('Chris')
elif Mishka > Chris:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
t = 0
t2 = 0
for i in range(n):
	s = [int(i) for i in input().split()]
	if s[0] > s[1]:
		t += 1
	if s[0] < s[1]:
		t2 += 1
if t > t2:
	print('Mishka')
elif t < t2:
	print('Chris')
else:
	print('Friendship is magic!^^')


(n, m) = (int(input()), 0)
for _ in '0' * n:
	(a, b) = map(int, input().split())
	m += [[1, -1][a < b], 0][a == b]
print([['Mishka', 'Chris'][m < 0], 'Friendship is magic!^^'][m == 0])


n = int(input())
mishka = 0
chris = 0
for i in range(n):
	inp = input().split()
	mishkaDice = int(inp[0])
	chrisDice = int(inp[1])
	if mishkaDice > chrisDice:
		mishka += 1
	elif chrisDice > mishkaDice:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = []
c = []
mw = 0
cw = 0
for i in range(n):
	(mi, ci) = map(int, input().split())
	m.append(mi)
	c.append(ci)
for k in range(n):
	if m[k] > c[k]:
		mw += 1
	elif c[k] > m[k]:
		cw += 1
if mw > cw:
	print('Mishka')
elif cw > mw:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
M_win = 0
C_win = 0
for i in range(n):
	(M, C) = map(int, input().split())
	if M > C:
		M_win += 1
	elif M < C:
		C_win += 1
if M_win > C_win:
	print('Mishka')
elif M_win < C_win:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
s = 0
p = 0
for _ in range(t):
	(n, m) = map(int, input().split())
	if n > m:
		s = s + 1
	elif m > n:
		p = p + 1
if s > p:
	print('Mishka')
elif p > s:
	print('Chris')
elif s == p:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
while n > 0:
	(x, y) = input().split()
	if x > y:
		m = m + 1
	elif x < y:
		c = c + 1
	n = n - 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count = 0
count1 = 0
for i in range(n):
	(a, b) = input().split()
	if a > b:
		count += 1
	elif a == b:
		count += 0
	else:
		count1 += 1
if count > count1:
	print('Mishka')
elif count == count1:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input().strip(' '))
(m_w, c_w) = (0, 0)
for i in range(n):
	(m, c) = tuple(map(int, input().strip(' ').split(' ')))
	if m > c:
		m_w += 1
	elif c > m:
		c_w += 1
if m_w > c_w:
	print('Mishka')
elif c_w > m_w:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
a = [input() for i in range(n)]
m = 0
f = 0
c = 0
for j in range(n):
	if a[j][0] > a[j][-1]:
		m += 1
	elif a[j][0] < a[j][-1]:
		c += 1
	else:
		f += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys

def main():
	n = int(input())
	(mw, cw) = (0, 0)
	while n > 0:
		l = list(input().split())
		if int(l[0]) > int(l[1]):
			mw += 1
		elif int(l[0]) < int(l[1]):
			cw += 1
		n -= 1
	if mw > cw:
		print('Mishka')
	elif cw > mw:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


n = int(input())
mishka_count = 0
chris_count = 0
for i in range(n):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		mishka_count += 1
	elif chris > mishka:
		chris_count += 1
if mishka_count == chris_count:
	print('Friendship is magic!^^')
elif mishka_count > chris_count:
	print('Mishka')
else:
	print('Chris')


m1 = 0
c1 = 0
for i in range(int(input())):
	(m, c) = list(map(int, input().strip().split()))
	if m > c:
		m1 += 1
	elif c > m:
		c1 += 1
	else:
		pass
if m1 > c1:
	print('Mishka')
elif c1 > m1:
	print('Chris')
else:
	print('Friendship is magic!^^')


(cnt_m, cnt_c) = (0, 0)
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	cnt_m += int(m > c)
	cnt_c += int(c > m)
if cnt_m > cnt_c:
	print('Mishka')
elif cnt_c > cnt_m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count = 0
rounds = []
while count < n:
	s = input().split()
	rounds.append(s)
	count += 1
m = 0
c = 0
for x in rounds:
	if x[0] > x[1]:
		m += 1
	elif x[1] > x[0]:
		c += 1
	else:
		m += 1
		c += 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
else:
	print('Chris')


n = int(input())
balance = 0
for j in range(n):
	(m, c) = (int(x) for x in input().split())
	if m > c:
		balance += 1
	elif c > m:
		balance -= 1
if balance > 0:
	print('Mishka')
elif balance == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
mishka_ans = 0
chris_ans = 0
for i in range(0, n):
	(m, c) = list(map(int, input().split()))
	if m > c:
		mishka_ans += 1
	elif m < c:
		chris_ans += 1
	elif m == c:
		continue
if mishka_ans > chris_ans:
	print('Mishka')
elif mishka_ans < chris_ans:
	print('Chris')
elif mishka_ans == chris_ans:
	print('Friendship is magic!^^')


n = int(input())
a = 0
b = 0
for i in range(n):
	(l, r) = input().split()
	(l, r) = (int(l), int(r))
	if l > r:
		a += 1
	elif r > l:
		b += 1
if a > b:
	print('Mishka')
elif b > a:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
m = 0
c = 0
for i in range(rounds):
	(a, b) = map(int, input().split())
	if a > b:
		m += 1
	elif b > a:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
elif m == c:
	print('Friendship is magic!^^')


n = int(input())
RM = 0
RC = 0
for x in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		RM = RM + 1
	if a < b:
		RC = RC + 1
if RM > RC:
	print('Mishka')
if RM < RC:
	print('Chris')
if RM == RC:
	print('Friendship is magic!^^')


k = int(input())
mishka = 0
chris = 0
for i in range(k):
	(m, c) = map(int, input().split())
	if m > c:
		mishka = mishka + 1
	elif c > m:
		chris = chris + 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
mi = ch = 0
for t in range(t):
	(m, c) = map(int, input().split())
	if m > c:
		mi += 1
	elif c > m:
		ch += 1
	else:
		mi += 1
		ch += 1
if mi > ch:
	print('Mishka')
elif ch > mi:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
km = 0
kc = 0
if 1 <= n and n <= 100:
	for i in range(n):
		(m, c) = map(int, input().split())
		if 1 > m or m > 6 or c < 1 or (c > 6):
			print('nevernie znach')
			break
		if m > c:
			km += 1
		elif c > m:
			kc += 1
	if km > kc:
		print('Mishka')
	elif kc > km:
		print('Chris')
	else:
		print('Friendship is magic!^^')
else:
	print('Nevernoe znach')


n = int(input())
mike = 0
chris = 0
for i in range(n):
	(m, c) = [int(a) for a in input().split()]
	if m > c:
		mike += 1
	elif c > m:
		chris += 1
	elif m == c:
		continue
if mike > chris:
	print('Mishka')
elif chris > mike:
	print('Chris')
elif mike == chris:
	print('Friendship is magic!^^')


m = 0
c = 0
for _ in range(int(input())):
	(j, k) = map(int, input().split())
	if j == k:
		continue
	elif j > k:
		m += 1
	else:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


class Mark:

	def __init__(self, markM, markC):
		self.markM = markM
		self.markC = markC
n = int(input())
listMC = []
countM = 0
countC = 0
for i in range(n):
	(mark1, mark2) = map(int, input().split())
	mm = Mark(mark1, mark2)
	listMC.append(mm)
for i in listMC:
	if i.markM > i.markC:
		countM += 1
	elif i.markM < i.markC:
		countC += 1
if countM > countC:
	print('Mishka')
elif countM < countC:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
data = [input().split() for _ in range(n)]
(k, k1) = (0, 0)
for x in data:
	if x[0] > x[1]:
		k += 1
	elif x[0] < x[1]:
		k1 += 1
if k > k1:
	print('Mishka')
elif k < k1:
	print('Chris')
else:
	print('Friendship is magic!^^')


(mCount, cCount) = (0, 0)
for i in range(int(input())):
	(m, c) = (int(i) for i in input().split())
	if m > c:
		mCount += 1
	elif m < c:
		cCount += 1
if mCount > cCount:
	print('Mishka')
elif mCount < cCount:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
Chris_wins = 0
Mishka_wins = 0
Friendship = 0
for i in range(n):
	a = list(map(int, input().split()))
	if a[1] > a[0]:
		Chris_wins += 1
	elif a[1] < a[0]:
		Mishka_wins += 1
	elif a[0] == a[1]:
		Friendship += 1
if Chris_wins > Mishka_wins:
	print('Chris')
elif Mishka_wins > Chris_wins:
	print('Mishka')
else:
	print('Friendship is magic!^^')


x = int(input())
y = []
for c in range(x):
	y.append(input().split())
object = 0
M = 0
C = 0
for c in range(x):
	for v in y:
		if int(v[0]) > int(v[1]):
			M = M + 1
		if int(v[0]) < int(v[1]):
			C = C + 1
if C == M:
	print('Friendship is magic!^^')
elif M > C:
	print('Mishka')
else:
	print('Chris')


import sys
sm = 0
for v in sys.stdin.readlines()[1:]:
	(v1, v2) = v.split()
	sm += 1 if v1 > v2 else -1 if v1 < v2 else 0
print('Mishka' if sm > 0 else 'Chris' if sm < 0 else 'Friendship is magic!^^')


s = [0] * 2
for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x > y:
		s[0] += 1
	elif x < y:
		s[1] += 1
if s[0] > s[1]:
	print('Mishka')
elif s[0] == s[1]:
	print('Friendship is magic!^^')
else:
	print('Chris')


T = int(input())
mishka = 0
chris = 0
while T > 0:
	numbers = [int(n) for n in input().split()]
	if numbers[0] > numbers[1]:
		mishka = mishka + 1
	elif numbers[0] < numbers[1]:
		chris = chris + 1
	else:
		chris = chris + 1
		mishka = mishka + 1
	T = T - 1
if mishka > chris:
	print('Mishka')
elif mishka < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


m = 0
for i in range(int(input())):
	x = list(map(int, input().split()))
	m += [[-1, 1][x[0] > x[1]], 0][x[0] == x[1]]
print([['Mishka', 'Chris'][m < 0], 'Friendship is magic!^^'][m == 0])


n = int(input())
x = []
while n > 0:
	x.append(input().split())
	n -= 1
(a, b) = (0, 0)
for i in x:
	if i[0] > i[1]:
		a += 1
	elif i[0] < i[1]:
		b += 1
if a > b:
	print('Mishka')
elif a < b:
	print('Chris')
else:
	print('Friendship is magic!^^')


i = input()
l = []
m = 0
c = 0
for x in range(0, int(i)):
	l.append(input())
for y in l:
	r = y.split()
	if r[0] > r[1]:
		m += 1
	elif r[0] < r[1]:
		c += 1
	else:
		pass
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


number = int(input())
mishka_results = 0
chris_results = 0
for _value in range(1, number + 1):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		mishka_results += 1
	elif mishka < chris:
		chris_results += 1
	else:
		continue
if mishka_results > chris_results:
	print('Mishka')
elif mishka_results < chris_results:
	print('Chris')
else:
	print('Friendship is magic!^^')


def calculations(check):
	operations_list = []
	for i in check:
		if i[0] > i[1]:
			operations_list.append(1)
		elif i[0] == i[1]:
			operations_list.append(2)
		else:
			operations_list.append(0)
	num = operations_list.count(1)
	num2 = operations_list.count(0)
	if num > num2:
		return 'Mishka'
	elif num < num2:
		return 'Chris'
	else:
		return 'Friendship is magic!^^'
lis2 = []
n = int(input())
for i in range(n):
	lis = list(map(int, input().split()))
	lis2.append(lis)
result = calculations(lis2)
print(result)


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


score = 0
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	if a != b:
		score += 2 * (a > b) - 1
if score == 0:
	print('Friendship is magic!^^')
elif score > 0:
	print('Mishka')
else:
	print('Chris')


a = int(input())
i = 0
mi = 0
kr = 0
while i < a:
	b = input().split()
	c = int(b[0])
	d = int(b[1])
	if c > d:
		mi = mi + 1
	elif d > c:
		kr = kr + 1
	i = i + 1
if kr > mi:
	print('Chris')
elif kr < mi:
	print('Mishka')
else:
	print('Friendship is magic!^^')


class dice:

	def __init__(self, a, b, c):
		self.x = a
		self.y = b
		self.z = c
n = int(input())
myList = []
for i in range(n):
	(m, c) = map(int, input().split())
	r = 0
	if m < c:
		r = -1
	elif m > c:
		r = 1
	roll = dice(m, c, r)
	myList.append(roll)
finR = 0
for i in range(n):
	finR += myList[i].z
if finR < 0:
	print('Chris')
elif finR > 0:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
(a, b) = (0, 0)
for i in range(0, n):
	(d1, d2) = map(int, input().split())
	if d1 > d2:
		a += 1
	elif d1 < d2:
		b += 1
if a > b:
	print('Mishka')
elif a < b:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(t1, t2) = (0, 0)
for i in range(n):
	(a, b) = map(int, input().split())
	t1 += a >= b
	t2 += b >= a
if t1 > t2:
	print('Mishka')
elif t1 == t2:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
m = 0
c = 0
d = 0
i = 1
while i in range(n + 1):
	(mi, ci) = map(int, input().split())
	if mi > ci:
		m += 1
	elif mi < ci:
		c += 1
	else:
		d += 1
	i += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
score = 0
for _ in range(rounds):
	(m, c) = map(int, input().split())
	if m > c:
		score += 1
	elif c > m:
		score -= 1
if score > 0:
	print('Mishka')
elif score < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishika = 0
chris = 0
for i in range(n):
	l = list(input().split())
	if int(l[0]) > int(l[1]):
		mishika += 1
	elif int(l[0]) < int(l[1]):
		chris += 1
if mishika > chris:
	print('Mishka')
elif chris > mishika:
	print('Chris')
else:
	print('Friendship is magic!^^')


counta = 0
countb = 0
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		counta += 1
	elif a < b:
		countb += 1
	else:
		countb += 0
if counta > countb:
	print('Mishka')
elif countb > counta:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	pass
main()
n = int(input())
p1 = 0
p2 = 0
a = 0
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		p1 = p1 + 1
	elif m < c:
		p2 = p2 + 1
	else:
		a += 1
if p1 > p2:
	print('Mishka')
elif p1 < p2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(tx, ty) = (0, 0)
for i in range(n):
	(x, y) = map(int, input().split())
	if x == y:
		pass
	elif x > y:
		tx = tx + 1
	else:
		ty = ty + 1
if tx == ty:
	print('Friendship is magic!^^')
elif tx > ty:
	print('Mishka')
else:
	print('Chris')


n = int(input())
c1 = 0
c2 = 0
for i in range(n):
	(p1, p2) = map(int, input().split())
	if p1 > p2:
		c1 += 1
	elif p2 > p1:
		c2 += 1
if c1 > c2:
	print('Mishka')
elif c2 > c1:
	print('Chris')
else:
	print('Friendship is magic!^^')


sgn = lambda x: -1 if x < 0 else 1 if x > 0 else 0
n = int(input())
(mishka_score, chris_score) = (0, 0)
for i in range(n):
	dice = [int(x) for x in input().split(' ')]
	if dice[0] > dice[1]:
		mishka_score += 1
	elif dice[1] > dice[0]:
		chris_score += 1
print(['Friendship is magic!^^', 'Mishka', 'Chris'][sgn(mishka_score - chris_score)])


i = int(input())
j = 0
m = 0
c = 0
while i > j:
	j += 1
	(x, y) = map(int, input().split())
	if x > y:
		m += 1
	elif x < y:
		c += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


from random import randint
n = int(input())
mishka = 0
cris = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		mishka += 1
	elif a < b:
		cris += 1
if mishka > cris:
	print('Mishka')
elif mishka < cris:
	print('Chris')
else:
	print('Friendship is magic!^^')


c1 = c2 = 0
for i in range(int(input())):
	(miksha, chris) = [int(x) for x in input().split()]
	if miksha > chris:
		c1 += 1
	elif miksha < chris:
		c2 += 1
	elif miksha == chris:
		pass
if c1 > c2:
	print('Mishka')
elif c1 < c2:
	print('Chris')
elif c1 == c2:
	print('Friendship is magic!^^')


n = int(input())
a = 0
for i in range(n):
	r = [int(y) for y in input().split()]
	if r[0] != r[1]:
		a += (r[0] - r[1]) / abs(r[0] - r[1])
print('Mishka') if a > 0 else print('Chris') if a < 0 else print('Friendship is magic!^^')


n = int(input())
mi = 0
cr = 0
while n > 0:
	(m, c) = map(int, input().split())
	if m > c:
		mi += 1
	elif c > m:
		cr += 1
	n = n - 1
if cr == mi:
	print('Friendship is magic!^^')
elif mi > cr:
	print('Mishka')
elif cr > mi:
	print('Chris')


mishka = 0
chris = 0
for _ in range(int(input())):
	(s, r) = list(map(int, input().split()))
	if s > r:
		mishka += 1
	elif r > s:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
games = []
for _ in range(n):
	games.append([int(x) for x in input().split()])
total = 0
for game in games:
	res = game[0] - game[1]
	if res > 0:
		total += 1
	elif res < 0:
		total -= 1
if total > 0:
	print('Mishka')
elif total == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
s1 = s2 = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		s1 += 1
	elif a < b:
		s2 += 1
if s1 > s2:
	print('Mishka')
elif s1 < s2:
	print('Chris')
else:
	print('Friendship is magic!^^')


(w, l) = (0, 0)
for _ in range(int(input())):
	(x, y) = [int(x) for x in input().split()]
	if x > y:
		w += 1
	elif y > x:
		l += 1
if w > l:
	print('Mishka')
elif w < l:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(mish, chris) = (0, 0)
for _ in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		mish += 1
	elif b > a:
		chris += 1
if mish > chris:
	print('Mishka')
elif chris > mish:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import stdin
from sys import stdout
sprint = stdout.write
sinput = stdin.readline
n = int(sinput())
(m, c) = (0, 0)
for i in range(n):
	(a, b) = [int(x) for x in sinput().split()]
	if a > b:
		m += 1
	elif b > a:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = int(input())
i = 0
c = 0
z = 0
while i < x:
	s = input().split()
	a = int(s[0])
	b = int(s[1])
	if a > b:
		c += 1
	elif a < b:
		z += 1
	i += 1
if c > z:
	print('Mishka')
elif z > c:
	print('Chris')
else:
	print('Friendship is magic!^^')


case = int(input())
m_p = 0
c_p = 0
for i in range(case):
	(m, c) = list(map(int, input().split()))
	if m > c:
		m_p += 1
	elif m < c:
		c_p += 1
if m_p > c_p:
	a = 'Mishka'
elif m_p < c_p:
	a = 'Chris'
else:
	a = 'Friendship is magic!^^'
print(a)


n = int(input(''))
i = 1
output = 0
while i <= n:
	(a, b) = input('').split(' ')
	m = int(a)
	c = int(b)
	if m < c:
		output = output - 1
	elif m > c:
		output = output + 1
	else:
		output = output
	i += 1
if output > 0:
	print('Mishka')
elif output < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


i = int(input())
girl = 0
boy = 0
for i in range(0, i):
	b = list(map(int, input().split(' ')))
	if b[0] > b[1]:
		girl = girl + 1
	if b[0] < b[1]:
		boy = boy + 1
if girl > boy:
	print('Mishka')
elif boy > girl:
	print('Chris')
elif boy == girl:
	print('Friendship is magic!^^')


(miksha_cnt, chris_cnt) = (0, 0)
for _ in range(int(input())):
	(n, m) = map(int, input().split())
	if n > m:
		miksha_cnt += 1
	elif n < m:
		chris_cnt += 1
	else:
		miksha_cnt += 1
		chris_cnt += 1
if miksha_cnt > chris_cnt:
	print('Mishka')
elif miksha_cnt < chris_cnt:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys
import math
d = int(input())
l = []
for h in range(d):
	(m, c) = [int(j) for j in input().split()]
	l.append(1 if m > c else 0 if m == c else -1)
print('Mishka' if sum(l) > 0 else 'Friendship is magic!^^' if sum(l) == 0 else 'Chris')


nums = input().split(' ')
nums = int(nums[0])
sums = 0
sumx = 0
sumh = 0
for i in range(nums):
	(k, m) = map(int, input().split(' '))
	if k > m:
		sums += 1
	elif k == m:
		sumx += 1
	elif k < m:
		sumh += 1
if sums > sumh:
	print('Mishka')
elif sums == sumh:
	print('Friendship is magic!^^')
elif sums < sumh:
	print('Chris')


n = int(input())
l = []
for i in range(n):
	s = input().split()
	l.append(s)
m = 0
c = 0
for i in l:
	if i[0] > i[1]:
		m = m + 1
	elif i[0] < i[1]:
		c = c + 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
elif m == c:
	print('Friendship is magic!^^')


n = int(input())
mi = 0
ch = 0
while n > 0:
	(m, c) = [int(x) for x in input().split()]
	if m > c:
		mi = mi + 1
	elif c > m:
		ch = ch + 1
	n = n - 1
if mi > ch:
	print('Mishka')
elif ch > mi:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
res = 0
for i in range(n):
	(f, s) = input().split()
	if int(f) > int(s):
		res += 1
	elif int(f) == int(s):
		res = res
	else:
		res -= 1
if res > 0:
	print('Mishka')
elif res == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
mish = 0
cris = 0
for i in range(n):
	(n, m) = map(int, input().split())
	if n > m:
		mish += 1
	if n == m:
		continue
	if n < m:
		cris += 1
if mish == cris:
	print('Friendship is magic!^^')
if mish > cris:
	print('Mishka')
if mish < cris:
	print('Chris')


n = int(input())
m_count = 0
c_count = 0
for _ in range(n):
	(m, c) = input().split(' ')
	if m > c:
		m_count += 1
	elif m == c:
		pass
	else:
		c_count += 1
if m_count > c_count:
	print('Mishka')
elif c_count > m_count:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


n = int(input())
msh = ch = 0
for _ in range(n):
	(a, b) = list(map(int, input().split()))
	if a > b:
		msh += 1
	elif b > a:
		ch += 1
if msh > ch:
	print('Mishka')
elif ch > msh:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
M = 0
C = 0
for i in range(n):
	s = list(input().split())
	s = [int(i) for i in s]
	if s[0] > s[1]:
		M += 1
	if s[0] < s[1]:
		C += 1
if M > C:
	print('Mishka')
if C > M:
	print('Chris')
if M == C:
	print('Friendship is magic!^^')


n = int(input())
num = 0
num2 = 0
while n > 0:
	n -= 1
	(m, c) = map(int, input().split())
	if m > c:
		num += 1
	elif c > m:
		num2 += 1
if num > num2:
	print('Mishka')
elif num2 > num:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
misha_win = 0
chris_win = 0
for r in range(n):
	(m, c) = list(map(int, input().split()))
	if m > c:
		misha_win += 1
	elif m < c:
		chris_win += 1
if misha_win > chris_win:
	print('Mishka')
elif misha_win < chris_win:
	print('Chris')
else:
	print('Friendship is magic!^^')


def get_ints():
	return list(map(int, input().split()))

def main():
	n = int(input())
	(m, c) = (0, 0)
	for _ in range(n):
		(a, b) = get_ints()
		if a > b:
			m += 1
		elif b > a:
			c += 1
	print('Mishka' if m > c else 'Chris' if c > m else 'Friendship is magic!^^')
main()


from sys import stdin, stdout

def func():
	n = int(input())
	scores = []
	for i in range(n):
		scores.append([int(x) for x in stdin.readline().rstrip().split()])
	m = 0
	for score in scores:
		if score[0] > score[1]:
			m += 1
		if score[0] < score[1]:
			m -= 1
	if m > 0:
		print('Mishka\n')
	elif m < 0:
		print('Chris\n')
	else:
		print('Friendship is magic!^^\n')
func()


n = int(input())
winner = {1: 'Mishka', 2: 'Chris', 3: 'Friendship is magic!^^'}
count = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a - b > 0:
		count += 1
	elif a - b < 0:
		count -= 1
if count > 0:
	print(winner[1])
elif count < 0:
	print(winner[2])
else:
	print(winner[3])


from sys import stdout, stdin
fin = stdin
fout = stdout
n = int(fin.readline())
m = 0
k = 0
for i in range(n):
	(mCur, kCur) = map(int, fin.readline().split())
	if mCur > kCur:
		m += 1
	elif kCur > mCur:
		k += 1
if m > k:
	print('Mishka', file=fout)
elif k > m:
	print('Chris', file=fout)
else:
	print('Friendship is magic!^^', file=fout)


n = int(input())
mi = 0
ch = 0
for i in range(n):
	[a, b] = list(map(int, input().split()))
	if a > b:
		mi += 1
	elif a < b:
		ch += 1
if mi == ch:
	print('Friendship is magic!^^')
elif mi > ch:
	print('Mishka')
elif mi < ch:
	print('Chris')


import random
n = int(input())
s_a = 0
s_b = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		s_a += 1
	elif a < b:
		s_b += 1
if s_a > s_b:
	print('Mishka')
elif s_a < s_b:
	print('Chris')
elif s_a == s_b:
	print('Friendship is magic!^^')


m = c = 0
for i in range(int(input())):
	s = input()
	m += eval(s.replace(' ', '-')) < 0
	c += eval(s.replace(' ', '-')) > 0
print(['Mishka', 'Friendship is magic!^^', 'Chris'][(m > c) - (m < c) + 1])


n = int(input())
w = 0
while n > 0:
	r = input().split(' ')
	if int(r[0]) < int(r[1]):
		w -= 1
	elif int(r[0]) > int(r[1]):
		w += 1
	n -= 1
if w > 0:
	print('Mishka')
elif w < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


c1 = 0
c2 = 0
n = int(input())
for t in range(n):
	l1 = [int(i) for i in input().split(' ')]
	if l1[0] > l1[1]:
		c1 += 1
	elif l1[0] < l1[1]:
		c2 += 1
if c1 > c2:
	print('Mishka')
elif c1 < c2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
i = 0
m = 0
c = 0
while i < n:
	num = [int(x) for x in input().split(' ')]
	if num[0] > num[1]:
		m += 1
	elif num[0] < num[1]:
		c += 1
	i += 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
else:
	print('Chris')


n = int(input())
(hasil1, hasil2) = (0, 0)
for i in range(n):
	angka = input().split()
	if int(angka[0]) > int(angka[1]):
		hasil1 += 1
	elif int(angka[0]) < int(angka[1]):
		hasil2 += 1
if hasil1 > hasil2:
	print('Mishka')
elif hasil1 < hasil2:
	print('Chris')
else:
	print('Friendship is magic!^^')


N = int(input())
(M, C) = (0, 0)
for _ in range(N):
	(m, c) = list(map(int, input().split()))
	if m == c:
		continue
	elif m < c:
		C += 1
	else:
		M += 1
if M > C:
	print('Mishka')
elif M < C:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
countm = 0
countc = 0
while t > 0:
	l = [int(i) for i in input().split()]
	a = l[0]
	b = l[1]
	if a == b:
		countm = countm
		countc = countc
	elif a > b:
		countm = countm + 1
	else:
		countc = countc + 1
	t = t - 1
if countm > countc:
	print('Mishka')
elif countm < countc:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


import sys, math, string
input = sys.stdin.readline
L = lambda : list(map(int, input().split()))
Ls = lambda : list(input().split())
M = lambda : map(int, input().split())
n = int(input())
a = 0
b = 0
for i in range(n):
	(q, w) = M()
	a += int(q > w)
	b += int(w > q)
if a == b:
	print('Friendship is magic!^^')
elif a > b:
	print('Mishka')
else:
	print('Chris')


def solve():
	n = int(input())
	(m, k) = (0, 0)
	for i in range(n):
		(mi, ci) = [int(s) for s in input().split()]
		if mi > ci:
			m += 1
		elif ci > mi:
			k += 1
	if m > k:
		print('Mishka')
	elif m == k:
		print('Friendship is magic!^^')
	else:
		print('Chris')
solve()


n = int(input())
ansm = 0
ansc = 0
for i in range(n):
	(mish, chris) = map(int, input().split())
	if mish < chris:
		ansc += 1
	elif mish > chris:
		ansm += 1
if ansm > ansc:
	print('Mishka')
elif ansc > ansm:
	print('Chris')
elif ansc == ansm:
	print('Friendship is magic!^^')


n = int(input())
s1 = 0
s2 = 0
t = 0
for x in range(n):
	(a, b) = [int(j) for j in input().split()]
	if a > b:
		s1 += 1
	elif a == b:
		t += 1
	else:
		s2 += 1
if s1 > s2:
	print('Mishka')
elif s1 == s2:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
rounds = []
m = 0
c = 0
for i in range(n):
	inp = list(map(int, input().rstrip().split()))
	if inp[0] > inp[1]:
		m += 1
	elif inp[0] < inp[1]:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
outputs = []
for i in range(2):
	outputs.append(0)
for i in range(n):
	inputs = input().split(' ')
	for j in range(len(inputs)):
		inputs[j] = int(inputs[j])
	if inputs[0] > inputs[1]:
		outputs[0] += 1
	elif inputs[1] > inputs[0]:
		outputs[1] += 1
if outputs[0] > outputs[1]:
	print('Mishka')
elif outputs[0] < outputs[1]:
	print('Chris')
else:
	print('Friendship is magic!^^')


from collections import Counter

def find_winner(mc):
	(m, c) = list(map(int, mc.split()))
	if m > c:
		return 'm'
	elif c > m:
		return 'c'
	else:
		return 'd'

def main():
	n = int(input())
	result = list(map(find_winner, [input() for i in range(n)]))
	if Counter(result)['c'] > Counter(result)['m']:
		print('Chris')
	elif Counter(result)['m'] > Counter(result)['c']:
		print('Mishka')
	else:
		print('Friendship is magic!^^')
main()


N = int(input())
mishka = 0
chris = 0
for _ in range(N):
	(x, y) = list(map(int, input().split()))
	if x > y:
		mishka += 1
	elif y > x:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


testcases = int(input())
m1 = 0
m2 = 0
for i in range(0, testcases):
	(c, d) = map(int, input().split())
	if c > d:
		m1 += 1
	elif d > c:
		m2 += 1
if m1 > m2:
	print('Mishka')
elif m2 > m1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mp = 0
cp = 0
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		mp = mp + 1
	if c > m:
		cp = cp + 1
if mp > cp:
	print('Mishka')
if cp > mp:
	print('Chris')
if cp == mp:
	print('Friendship is magic!^^')


r = int(input())
res = [0, 0]
for i in range(r):
	c = input().split(' ')
	if c[0] > c[1]:
		res[0] += 1
	elif c[1] > c[0]:
		res[1] += 1
if res[0] > res[1]:
	print('Mishka')
elif res[1] > res[0]:
	print('Chris')
else:
	print('Friendship is magic!^^')


total_round = int(input())
m = 0
c = 0
for i in range(total_round):
	(a, b) = input(' ').split()
	a = int(a)
	b = int(b)
	if a > b:
		m = m + 1
	elif b > a:
		c = c + 1
	else:
		continue
if c > m:
	print('Chris')
elif m > c:
	print('Mishka')
else:
	print('Friendship is magic!^^')


mis = 0
cri = 0
arr = [0] * 99
a = int(input())
for i in range(0, a):
	arr = list(map(int, input().split()))
	n = arr[0]
	m = arr[1]
	if n > m:
		mis += 1
	elif n < m:
		cri += 1
if mis > cri:
	print('Mishka')
elif cri > mis:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
miskha_score = 0
chris_score = 0
for i in range(n):
	(a, b) = map(int, input().split(' '))
	if a > b:
		miskha_score += 1
	elif a < b:
		chris_score += 1
	else:
		miskha_score += 1
		chris_score += 1
if miskha_score > chris_score:
	print('Mishka')
elif miskha_score < chris_score:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
m_cnt = 0
c_cnt = 0
while t != 0:
	(m, c) = map(int, input().split())
	if m > c:
		m_cnt += 1
	elif c > m:
		c_cnt += 1
	t -= 1
if m_cnt == c_cnt:
	print('Friendship is magic!^^')
elif m_cnt > c_cnt:
	print('Mishka')
else:
	print('Chris')


(m, c) = (0, 0)
for i in range(int(input())):
	(res1, res2) = map(int, input().split())
	if res1 > res2:
		m += 1
	elif res1 < res2:
		c += 1
if m < c:
	print('Chris')
elif m > c:
	print('Mishka')
else:
	print('Friendship is magic!^^')


def main():
	p_m = 0
	p_x = 0
	n = int(input())
	for _ in range(n):
		(m, x) = [int(x) for x in input().split()]
		if m > x:
			p_m += 1
		elif m < x:
			p_x += 1
	if p_m < p_x:
		print('Chris')
	elif p_m == p_x:
		print('Friendship is magic!^^')
	else:
		print('Mishka')
main()


n = int(input())
k1 = k2 = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		k1 += 1
	if b > a:
		k2 += 1
if k1 > k2:
	print('Mishka')
elif k1 < k2:
	print('Chris')
else:
	print('Friendship is magic!^^')


def list_inp(list, n):
	for i in range(0, n):
		tmp = input().split()
		list.append(tmp)
n = int(input())
lst = []
list_inp(lst, n)
Chris = 0
Mishka = 0
for i in range(0, n):
	for x in range(0, 2):
		if lst[i][0] > lst[i][1]:
			Mishka += 1
		elif lst[i][0] < lst[i][1]:
			Chris += 1
if Mishka > Chris:
	print('Mishka')
elif Mishka < Chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mm = 0
cc = 0
for i in range(n):
	s = input()
	s = s.split(' ')
	m = int(s[0])
	c = int(s[1])
	if m > c:
		mm += 1
	elif m < c:
		cc += 1
	else:
		continue
if mm > cc:
	print('Mishka')
elif mm < cc:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
M = 0
C = 0
for i in range(n):
	(miskha, chris) = map(int, input().split())
	if miskha > chris:
		M = M + 1
	elif chris > miskha:
		C = C + 1
if M > C:
	print('Mishka')
elif M < C:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
sum = 0
for file in range(n):
	l = input().split()
	M = int(l[0])
	K = int(l[1])
	if M == K:
		continue
	elif M > K:
		sum += 1
	elif K > M:
		sum -= 1
if sum < 0:
	print('Chris')
elif sum > 0:
	print('Mishka')
else:
	print('Friendship is magic!^^')


import math

def main():
	d = 0
	f = 0
	for i in range(int(input())):
		(m, c) = map(int, input().split())
		if m > c:
			d += 1
		elif m < c:
			f += 1
	if d > f:
		print('Mishka')
	elif d < f:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


T = int(input())
count_m = 0
count_c = 0
for _ in range(T):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		count_m += 1
	elif chris > mishka:
		count_c += 1
	else:
		count_c += 0
		count_m += 0
if count_c > count_m:
	print('Chris')
elif count_m > count_c:
	print('Mishka')
else:
	print('Friendship is magic!^^')


import sys
import collections
input = sys.stdin.readline

def printnl(val):
	sys.stdout.write(str(val) + '\n')
n = int(input())
(m, c) = (0, 0)
for i in range(n):
	(l, r) = map(int, input().split())
	if l < r:
		m += 1
	elif l > r:
		c += 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Chris')
else:
	print('Mishka')


a = int(input())
sum = 0
for k in range(a):
	d = list(map(int, input().split()))
	if d[0] > d[1]:
		sum += 1
	elif d[0] < d[1]:
		sum += -1
	else:
		pass
if sum > 0:
	print('Mishka')
elif sum < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


ans = ['Mishka', 'Chris', 'Friendship is magic!^^']
t = int(input())
mw = 0
cw = 0
while t > 0:
	(m, c) = list(map(int, input().split()))
	if m > c:
		mw += 1
	elif c > m:
		cw += 1
	t = t - 1
if mw > cw:
	print(ans[0])
elif cw > mw:
	print(ans[1])
else:
	print(ans[2])


t = 0
n = int(input())
for i in range(n):
	(md, cd) = map(int, input().strip().split())
	if md > cd:
		t = t + 1
	elif md < cd:
		t = t - 1
if t > 0:
	print('Mishka')
elif t < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import stdin, stdout
n = int(stdin.readline())
(a, b) = (0, 0)
for i in range(n):
	(x, y) = map(int, stdin.readline().split())
	if x > y:
		a += 1
	elif y > x:
		b += 1
if a > b:
	stdout.write('Mishka')
elif b > a:
	stdout.write('Chris')
else:
	stdout.write('Friendship is magic!^^')


NumOfRounds = int(input())
result = 0
for i in range(NumOfRounds):
	(x, y) = map(int, input().split())
	if x > y:
		result += 1
	elif x < y:
		result -= 1
if result > 0:
	print('Mishka')
elif result < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main(nL):
	m = 0
	o = 0
	for lis in nL:
		if lis[0] > lis[1]:
			m += 1
		elif lis[0] < lis[1]:
			o += 1
	if m > o:
		return 'Mishka'
	elif m < o:
		return 'Chris'
	else:
		return 'Friendship is magic!^^'
num = int(input())
numList = []
for i in range(num):
	numStr = list(map(int, input().split(' ')))
	numList.append(numStr)
print(main(numList))


n = int(input())
M = [input().split() for i in range(n)]
m = k = 0
for i in range(n):
	for j in range(2):
		M[i][j] = int(M[i][j])
for i in range(n):
	for j in range(2):
		if M[i][0] > M[i][1]:
			m = m + 1
		elif M[i][0] < M[i][1]:
			k = k + 1
if m > k:
	print('Mishka')
elif m < k:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
res = 0
for _ in range(n):
	a = [int(x) for x in input().split()]
	res += 1 if a[0] > a[1] else -1 if a[0] < a[1] else 0
print('Mishka' if res > 0 else 'Chris' if res < 0 else 'Friendship is magic!^^')


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


n = int(input())
sum1 = 0
sum2 = 0
for i in range(n):
	k = input().split(' ')
	if int(k[0]) > int(k[1]):
		sum1 = sum1 + 1
	elif int(k[0]) < int(k[1]):
		sum2 = sum2 + 1
if sum1 > sum2:
	print('Mishka')
elif sum1 < sum2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mcount = 0
ccount = 0
while n:
	(m, c) = map(int, input().split())
	if m > c:
		mcount += 1
	elif m < c:
		ccount += 1
	else:
		mcount += 1
		ccount += 1
	n -= 1
if mcount > ccount:
	print('Mishka')
elif mcount < ccount:
	print('Chris')
else:
	print('Friendship is magic!^^')


(mv, cv) = (0, 0)
for i in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		mv += 1
	elif c > m:
		cv += 1
if mv > cv:
	print('Mishka')
elif cv > mv:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


t = input
p = print
r = range
n = int(t())
(a, b) = (0, 0)
for i in r(n):
	(m, c) = map(int, t().split())
	if m > c:
		a += 1
	elif m < c:
		b += 1
ans = 'Mishka'
if a == b:
	ans = 'Friendship is magic!^^'
if a < b:
	ans = 'Chris'
p(ans)


n1 = int(input())
q = 0
for a in range(n1):
	mc = input().split(' ')
	m = int(mc[0])
	c = int(mc[1])
	if m - c == 0:
		pass
	else:
		q += 1 if m - c > 0 else -1
if q == 0:
	print('Friendship is magic!^^')
else:
	print('Mishka' if q > 0 else 'Chris')


n = int(input())
l = []
while n != 0:
	n -= 1
	(m, c) = [int(i) for i in input().split()]
	if m > c:
		l.append(1)
	elif m < c:
		l.append(0)
if l.count(1) > l.count(0):
	print('Mishka')
elif l.count(1) < l.count(0):
	print('Chris')
else:
	print('Friendship is magic!^^')


mishka = 0
chris = 0
for t in range(int(input())):
	(dicem, dicec) = list(map(int, input().split()))
	if dicem > dicec:
		mishka += 1
	elif dicec > dicem:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


m = 0
a = int(input())
for i in range(a):
	ar = [int(i) for i in input().split()]
	x = ar[0]
	y = ar[1]
	if x > y:
		m += 1
	elif y > x:
		m -= 1
	else:
		m == 0
if m > 0:
	print('Mishka')
elif m < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


inp = int(input())
num = int()
for x in range(inp):
	inp2 = list(map(int, input().split()))
	if inp2[0] > inp2[1]:
		num = num + 1
	elif inp2[0] < inp2[1]:
		num = num - 1
if num > 0:
	print('Mishka')
elif num < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


round = int(input())
mishka_win = 0
chris_win = 0
for i in range(round):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		mishka_win += 1
	elif mishka < chris:
		chris_win += 1
	else:
		pass
if mishka_win > chris_win:
	print('Mishka')
elif mishka_win < chris_win:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = 0
for _ in ' ' * int(input()):
	(a, b) = map(int, input().split())
	t += a > b
	t -= a < b
if t > 0:
	print('Mishka')
elif t < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
lst = list()
for i in range(n):
	lst.append(input().split())
(m, c) = (0, 0)
for i in range(n):
	if int(lst[i][0]) > int(lst[i][1]):
		m += 1
	elif int(lst[i][1]) > int(lst[i][0]):
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
i = 0
d = 0
c = 0
while i != n:
	(a, b) = input().split()
	(a, b) = (int(a), int(b))
	if a > b:
		d = d + 1
	elif b > a:
		c = c + 1
	i = i + 1
if d > c:
	print('Mishka')
elif c > d:
	print('Chris')
elif d == c:
	print('Friendship is magic!^^')


import sys
import os
n = int(input())
Mavg = 0
Cavg = 0
for i in range(0, n):
	(a, b) = map(int, sys.stdin.readline().split())
	if a > b:
		Mavg = Mavg + 1
	elif b > a:
		Cavg = Cavg + 1
	else:
		Mavg = Mavg
		Cavg = Cavg
if Mavg > Cavg:
	print('Mishka')
elif Cavg > Mavg:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = eval(input())
result = []
for i in range(x):
	(a, b) = input().strip().split(' ')
	result.extend([a, b])
m = 0
c = 0
f = 1
s = len(result)
g = 0
while f <= int(s / 2):
	if result[g] > result[g + 1]:
		m += 1
	elif result[g] < result[g + 1]:
		c += 1
	g += 2
	f += 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
res = [0, 0, 0]
for i in range(n):
	(a, b) = [int(x) for x in input().split()]
	res[0 if a < b else 1 if a == b else 2] += 1
if res[0] == res[2]:
	print('Friendship is magic!^^')
elif res[0] > res[2]:
	print('Chris')
else:
	print('Mishka')


num = int(input())
mishka = 0
chris = 0
for i in range(num):
	game = list(map(int, input().split()))
	if game[0] > game[1]:
		mishka += 1
	if game[0] < game[1]:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


(m, c) = (0, 0)
for t in range(int(input())):
	(a, b) = input().split()
	a = int(a)
	b = int(b)
	if a > b:
		m = m + 1
	if b > a:
		c = c + 1
if m > c:
	print('Mishka')
if c > m:
	print('Chris')
if c == m:
	print('Friendship is magic!^^')


import sys

def main():
	_count_m = _count_c = 0
	n = int(input())
	for i in range(0, n):
		(m, c) = map(int, input().split())
		if c > m:
			_count_c += 1
		elif m > c:
			_count_m += 1
	if _count_m > _count_c:
		print('Mishka')
		return
	if _count_c > _count_m:
		print('Chris')
		return
	print('Friendship is magic!^^')
	return
sys.exit(main())


n = int(input())
[m, c] = [0, 0]
for _ in ' ' * n:
	a = list(map(int, input().split()))
	m += a[0] > a[1]
	c += a[1] > a[0]
print('Mishka' if m > c else 'Chris' if c > m else 'Friendship is magic!^^')


sum1 = 0
sum2 = 0
for _ in range(int(input())):
	l = list(map(int, input().split()))
	if l[0] > l[1]:
		sum1 += 1
	elif l[0] < l[1]:
		sum2 += 1
if sum1 > sum2:
	print('Mishka')
elif sum1 < sum2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m_num = 0
ch_num = 0
for i in range(n):
	(m, ch) = [int(j) for j in input().split()]
	if m > ch:
		m_num += 1
	elif m < ch:
		ch_num += 1
if m_num > ch_num:
	print('Mishka')
elif m_num < ch_num:
	print('Chris')
else:
	print('Friendship is magic!^^')


size = int(input())
Mishka = 0
Chris = 0
for x in range(0, size):
	(i, j) = input().split()
	i = int(i)
	j = int(j)
	if i > j:
		Mishka += 1
	elif j > i:
		Chris += 1
	else:
		temp = 0
if Chris < Mishka:
	print('Mishka')
elif Chris == Mishka:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
y = 0
g = 0
for m in range(n):
	(x, z) = map(int, input().split())
	if x > z:
		y += 1
	if z > x:
		g += 1
if y > g:
	print('Mishka')
elif g > y:
	print('Chris')
if y == g:
	print('Friendship is magic!^^')


n = int(input())
m = c = 0
for _ in range(n):
	(am, ac) = map(int, input().split())
	if am > ac:
		m = m + 1
	elif am < ac:
		c = c + 1
	else:
		continue
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m_win = 0
c_win = 0
for (m, c) in [list(map(int, input().split())) for _ in range(n)]:
	if m > c:
		m_win += 1
	elif m < c:
		c_win += 1
if m_win > c_win:
	print('Mishka')
elif m_win < c_win:
	print('Chris')
else:
	print('Friendship is magic!^^')


def game(n):
	c = 0
	m = 0
	for i in range(0, n):
		list1 = [int(i) for i in input().split()]
		mc = list1[0]
		cc = list1[1]
		if cc > mc:
			c = c + 1
		elif mc > cc:
			m = m + 1
	if m > c:
		print('Mishka')
	elif c > m:
		print('Chris')
	else:
		print('Friendship is magic!^^')
n = int(input())
game(n)


(mis, ch) = (0, 0)
for _ in range(int(input())):
	(m, c) = input().split()
	m = int(m)
	c = int(c)
	if m > c:
		mis = mis + 1
	if c > m:
		ch = ch + 1
if mis > ch:
	print('Mishka')
if ch > mis:
	print('Chris')
if ch == mis:
	print('Friendship is magic!^^')


a = int(input())
count = 0
count1 = 0
for i in range(a):
	b = list(map(int, input().split(' ')[:2]))
	if b[0] > b[1]:
		count = count + 1
	elif b[0] == b[1]:
		continue
	else:
		count1 = count1 + 1
if count > count1:
	print('Mishka')
elif count == count1:
	print('Friendship is magic!^^')
else:
	print('Chris')


a = int(input())
(r, c, t) = (0, 0, 0)
for i in range(a):
	(x, y) = map(int, input().split())
	if x > y:
		r += 1
	if y > x:
		c += 1
	if x == y:
		t += 1
if r > c:
	print('Mishka')
if c > r:
	print('Chris')
if c == r:
	print('Friendship is magic!^^')


def main():
	n = int(input())
	m = 0
	f = 0
	for _ in range(n):
		(a, b) = map(int, input().split())
		if a > b:
			m += 1
		elif b > a:
			f += 1
	if m > f:
		print('Mishka')
	elif f > m:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


n = int(input())
counter = 0
for i in range(0, n):
	m = list(map(int, input().split()))
	if m[0] > m[1]:
		counter += 1
	if m[0] < m[1]:
		counter -= 1
if counter > 0:
	print('Mishka')
if counter < 0:
	print('Chris')
if counter == 0:
	print('Friendship is magic!^^')


n = int(input())
mishka = []
chris = []
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		mishka.append('1')
	elif a < b:
		chris.append('1')
f = len(mishka)
f1 = len(chris)
if f > f1:
	print('Mishka')
elif f < f1:
	print('Chris')
else:
	print('Friendship is magic!^^')


(x, dic) = (0, {0: 'Friendship is magic!^^', 1: 'Mishka', -1: 'Chris'})
for i in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		x += 1
	elif a < b:
		x -= 1
if x > 0:
	x = 1
elif x < 0:
	x = -1
print(dic[x])


n = int(input())
count1 = 0
count2 = 0
for _ in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		count1 += 1
	elif a < b:
		count2 += 1
if count1 > count2:
	print('Mishka')
elif count2 > count1:
	print('Chris')
elif count1 == count2:
	print('Friendship is magic!^^')


n = int(input())
mis = 0
cir = 0
for i in range(n):
	d = [int(x) for x in input().split()]
	if d[1] > d[0]:
		cir += 1
	elif d[1] < d[0]:
		mis += 1
if mis > cir:
	print('Mishka')
elif mis < cir:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = int(input())
mishka = 0
chris = 0
for i in range(x):
	st = input()
	st = st.split()
	num1 = int(st[0])
	num2 = int(st[1])
	if num1 > num2:
		mishka += 1
	elif num2 > num1:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


import re
num_of_rounds = int(input())
count_mishka = 0
count_chris = 0
for i in range(num_of_rounds):
	number = str(input())
	x = re.findall('\\d', number)
	y = [int(a) for a in x]
	if y[0] > y[1]:
		count_mishka += 1
	elif y[0] < y[1]:
		count_chris += 1
	else:
		continue
if count_chris > count_mishka:
	print('Chris')
elif count_chris < count_mishka:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
mik = 0
chr = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		mik += 1
	elif b > a:
		chr += 1
if mik == chr:
	print('Friendship is magic!^^')
elif mik > chr:
	print('Mishka')
else:
	print('Chris')


n = int(input())
mis = 0
chris = 0
for i in range(n):
	a = list(map(int, input().split()))
	if a[0] > a[1]:
		mis += 1
	if a[0] < a[1]:
		chris += 1
if mis > chris:
	print('Mishka')
elif chris > mis:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import stdin
_input = stdin.readline
(_int, _range) = (int, range)

def solution():
	counter_m = 0
	friend = 0
	n = _int(_input())
	for _ in _range(n):
		(m, k) = [_int(i) for i in _input().split()]
		if m > k:
			counter_m += 1
		elif m == k:
			friend += 1
	counter_k = n - counter_m - friend
	if counter_m > counter_k:
		print('Mishka')
	elif counter_k == counter_m:
		print('Friendship is magic!^^')
	else:
		print('Chris')
solution()


t = int(input())
mishka = 0
chris = 0
for item in range(t):
	mc = [int(x) for x in input().split()]
	m = mc[0]
	c = mc[1]
	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!^^')


t = int(input())
(mis, chris) = (0, 0)
for i in range(t):
	(n, s) = map(int, input().split())
	if n > s:
		mis += 1
	elif n < s:
		chris += 1
if mis > chris:
	print('Mishka')
elif mis < chris:
	print('Chris')
elif mis == chris:
	print('Friendship is magic!^^')


n = int(input())
cpt1 = 0
cpt2 = 0
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		cpt1 += 1
	elif x < y:
		cpt2 += 1
if cpt1 > cpt2:
	print('Mishka')
elif cpt2 > cpt1:
	print('Chris')
else:
	print('Friendship is magic!^^')


i = 0
n = int(input())
m1 = 0
k1 = 0
while i < n:
	b = input().split()
	m = int(b[0])
	k = int(b[1])
	if m > k:
		m1 = m1 + 1
	if m < k:
		k1 = k1 + 1
	i = i + 1
if k1 < m1:
	print('Mishka')
if k1 > m1:
	print('Chris')
if k1 == m1:
	print('Friendship is magic!^^')


n = int(input())
m = 0
for i in range(n):
	(m0, c0) = map(int, input().split())
	if m0 > c0:
		m += 1
	if m0 < c0:
		m -= 1
if m == 0:
	print('Friendship is magic!^^')
elif m > 0:
	print('Mishka')
else:
	print('Chris')


t = int(input())
mishka = 0
chris = 0
for i in range(t):
	x = list(map(int, input().split()))
	if x[0] > x[1]:
		mishka += 1
	elif x[0] < x[1]:
		chris += 1
	else:
		mishka += 1
		chris += 1
if mishka > chris:
	print('Mishka')
elif mishka < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


test = int(input())
(cntM, cntCh) = (0, 0)
for x in range(test):
	(m, ch) = (int(a) for a in input().strip().split(' '))
	if m > ch:
		cntM += 1
	elif m < ch:
		cntCh += 1
if cntM > cntCh:
	print('Mishka')
elif cntM < cntCh:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
l = []
count = 0
add = 0
for i in range(n):
	(ai, bi) = map(int, input().split())
	if ai > bi:
		count += 1
	elif bi > ai:
		add += 1
	else:
		continue
if count > add:
	print('Mishka')
elif count == add:
	print('Friendship is magic!^^')
else:
	print('Chris')


round = int(input())
mishka = 0
chris = 0
for x in range(round):
	(m, c) = map(int, input().split())
	if m < 1 or (m > 6 and c < 1) or c > 6:
		exit(0)
	elif m > c:
		mishka = mishka + 1
	elif m < c:
		chris = chris + 1
	else:
		mishka = mishka + 0
		chris = chris + 0
if mishka == chris:
	print('Friendship is magic!^^')
elif mishka > chris:
	print('Mishka')
else:
	print('Chris')


a = int(input())
mishka = 0
chris = 0
for _ in range(a):
	b = input().split()
	c = int(b[0])
	d = int(b[1])
	if c > d:
		mishka += 1
	elif c < d:
		chris += 1
if mishka > chris:
	print('Mishka')
elif mishka == chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


num_games = int(input())
Miska = 0
Chris = 0
for current_game in range(num_games):
	inp = input()
	inp = inp.split(' ')
	if int(inp[0]) > int(inp[1]):
		Miska += 1
	elif int(inp[0]) < int(inp[1]):
		Chris += 1
if Miska > Chris:
	print('Mishka')
elif Chris > Miska:
	print('Chris')
else:
	print('Friendship is magic!^^')


size = int(input())
chris = 0
mishka = 0
for i in range(size):
	arr = list(map(int, input().split()))
	if arr[0] > arr[1]:
		mishka += 1
	elif arr[1] > arr[0]:
		chris += 1
if chris > mishka:
	print('Chris')
elif mishka > chris:
	print('Mishka')
else:
	print('Friendship is magic!^^')


h = 1
p = 'YES\n'
n = int(input())
m = 0
c = 0
while n:
	l = input().split(' ')
	if int(l[0]) > int(l[1]):
		m += 1
	elif int(l[0]) < int(l[1]):
		c += 1
	n -= 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n1 = int(input())
mcount = 0
ccount = 0
for i in range(n1):
	dice = [int(n) for n in input().split()]
	if dice[0] > dice[1]:
		mcount += 1
	if dice[1] > dice[0]:
		ccount += 1
if mcount > ccount:
	print('Mishka')
elif ccount > mcount:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
n2 = 0
for i in range(n):
	(n1, n3) = map(int, input().split())
	n2 += n1 > n3
	n2 -= n1 < n3
if n2 > 0:
	print('Mishka')
elif n2 < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = int(input())
(m, c) = (0, 0)
for i in range(x):
	x1 = [int(y1) for y1 in input().split()]
	if x1[0] > x1[1]:
		c += 1
	elif x1[0] < x1[1]:
		m += 1
if c < m:
	print('Chris')
elif c > m:
	print('Mishka')
else:
	print('Friendship is magic!^^')


class Diceface:

	def __init__(self, m=0, c=0):
		(self.m, self.c) = (m, c)
Miskha = 0
Chris = 0
n = int(input())
for i in range(n):
	diceface = Diceface()
	(diceface.m, diceface.c) = map(int, input().split())
	if diceface.m > diceface.c:
		Miskha += 1
	elif diceface.m == diceface.c:
		Miskha = Miskha
		Chris = Chris
	else:
		Chris += 1
if Miskha > Chris:
	print('Mishka')
elif Miskha == Chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


def solve(games):
	m = c = 0
	for game in games:
		if game[0] > game[1]:
			m += 1
		elif game[0] < game[1]:
			c += 1
	return 'Friendship is magic!^^' if m == c else 'Mishka' if m > c else 'Chris'
n = int(input())
games = list()
for i in range(n):
	g = list(map(int, input().split()))
	games.append(g)
print(solve(games))


def read():
	inputs = input().strip()
	return list(map(int, inputs.split()))

def read_pair():
	return map(int, input().split(' '))
n = int(input())
ans = 0
ans1 = 0
for i in range(1, n + 1):
	(x, y) = read_pair()
	if x > y:
		ans += 1
	elif x < y:
		ans1 += 1
if ans > ans1:
	print('Mishka')
elif ans < ans1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
w = [0, 0]
for _ in ' ' * n:
	i = input()
	if i[0] != i[2]:
		w[i[0] > i[2]] += 1
if w[0] == w[1]:
	print('Friendship is magic!^^')
elif w[1] > w[0]:
	print('Mishka')
else:
	print('Chris')


n = int(input())
m = 0
c = 0
for a in range(n):
	s = input().split()
	if min(int(s[0]), int(s[1])) == int(s[0]):
		c += 1
	if min(int(s[0]), int(s[1])) == int(s[1]):
		m += 1
if m > c:
	print('Mishka')
if m < c:
	print('Chris')
if m == c:
	print('Friendship is magic!^^')


n = int(input())
mish = chris = 0
for i in range(n):
	var = input()
	(x, y) = var.split()
	x = int(x)
	y = int(y)
	if x > y:
		mish += 1
	elif x < y:
		chris += 1
if mish > chris:
	print('Mishka')
elif mish < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys

def main():
	sys_in = sys.stdin
	sys_out = sys.stdout
	n = int(sys_in.readline())
	count = {'Mishka': 0, 'Chris': 0}
	for i in range(n):
		(m, c) = map(int, sys_in.readline().split())
		if m > c:
			count['Mishka'] += 1
		elif c > m:
			count['Chris'] += 1
	if count['Mishka'] == count['Chris']:
		sys_out.write('Friendship is magic!^^')
	else:
		sys_out.write(f'{max(count, key=count.get)}')
main()


n = int(input())
y = 0
x = 0
for i in range(n):
	(dice1, dice2) = map(int, input().split())
	if dice1 > dice2:
		y += 1
	elif dice1 < dice2:
		x += 1
	else:
		x += 0
if x < y:
	print('Mishka')
if x > y:
	print('Chris')
if x == y:
	print('Friendship is magic!^^')


k = int(input())
i = 0
m = 0
l = 0
c = 0
while i < k:
	a = input().split(' ')
	if int(a[0]) > int(a[1]):
		m += 1
	elif int(a[0]) == int(a[1]):
		l += 1
	else:
		c += 1
	i += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


from random import randint
n = int(input())
mih = 0
cri = 0
rav = 0
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		mih += 1
	elif m == c:
		rav += 1
	else:
		cri += 1
if mih > cri:
	print('Mishka')
elif mih == cri:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
count1 = 0
count2 = 0
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		count1 += 1
	elif x < y:
		count2 += 1
if count2 > count1:
	print('Chris')
elif count1 > count2:
	print('Mishka')
else:
	print('Friendship is magic!^^')


class Score:

	def __init__(self, m, c):
		self.m = m
		self.c = c

	def Mishka(self):
		return self.m > self.c

	def Chris(self):
		return self.m < self.c
n = int(input())
a = []
for n in range(n):
	(x, y) = map(int, input().split())
	a.append(Score(x, y))
ans = 0
for cur in a:
	if cur.Mishka():
		ans += 1
	elif cur.Chris():
		ans -= 1
if ans == 0:
	print('Friendship is magic!^^')
elif ans > 0:
	print('Mishka')
else:
	print('Chris')


n = int(input())
ans = 0
get = lambda : list(map(int, input().split()))
for i in range(n):
	(a, b) = get()
	if a > b:
		ans += 1
	elif b > a:
		ans -= 1
if ans > 0:
	print('Mishka')
elif ans < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


_ = int(input())
chris = 0
mishka = 0
for i in range(_):
	(d1, d2) = map(int, input().split())
	if d1 > d2:
		mishka += 1
	elif d1 < d2:
		chris += 1
if chris > mishka:
	print('Chris')
elif chris < mishka:
	print('Mishka')
elif chris == mishka:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
for _ in range(n):
	(l, r) = [int(i) for i in input().split()]
	if l > r:
		m += 1
	elif l < r:
		c += 1
	else:
		continue
if m > c:
	print('Mishka')
elif m == c:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
x = 0
y = 0
for i in range(n):
	l = list(map(int, input().split()))
	if l[0] > l[1]:
		x = x + 1
	elif l[1] > l[0]:
		y = y + 1
if x > y:
	print('Mishka')
elif y > x:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
rounds = []
for i in range(n):
	rounds.append(input().split())
m = 0
k = 0
for round in rounds:
	r1 = int(round[0])
	r2 = int(round[1])
	if r1 > r2:
		m += 1
	elif r1 < r2:
		k += 1
	else:
		continue
if m > k:
	print('Mishka')
elif m < k:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
a = 0
a1 = 0
for t in range(t):
	(p, q) = map(int, input().split())
	if p > q:
		a += 1
	elif p < q:
		a1 += 1
if a > a1:
	print('Mishka')
elif a == a1:
	print('Friendship is magic!^^')
else:
	print('Chris')


(c, m) = (0, 0)
for _ in range(int(input())):
	(s, p) = map(int, input().split())
	if s > p:
		m += 1
	elif p > s:
		c += 1
	elif p == s:
		c += 1
		m += 1
if c > m:
	print('Chris')
elif m > c:
	print('Mishka')
else:
	print('Friendship is magic!^^')


ms = 0
cs = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		ms += 1
	elif c > m:
		cs += 1
if cs > ms:
	print('Chris')
elif cs < ms:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
zerom = 0
zeroch = 0
for i in range(n):
	(m, ch) = map(int, input().split())
	if m > ch:
		zerom += 1
	elif m < ch:
		zeroch += 1
	else:
		zerom += 1
		zeroch += 1
if zerom > zeroch:
	print('Mishka')
elif zerom < zeroch:
	print('Chris')
else:
	print('Friendship is magic!^^')


r = int(input())
(m, c) = (0, 0)
for loop in range(r):
	(a, b) = [int(x) for x in input().split()]
	if a > b:
		m += 1
	elif b > a:
		c += 1
	else:
		continue
if m == c:
	print('Friendship is magic!^^')
else:
	print('Mishka' if m > c else 'Chris')


n = int(input())
m = 0
c = 0
for t in range(n):
	(mi, ci) = list(map(int, input().split()))
	m += mi > ci
	c += ci > mi
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


def max1(a):
	p = a[0]
	for x in a:
		if x > p:
			p = x
	return p
row = int(input())
col = 2
a = []
for i in range(row):
	b = list(map(int, input().split()))
	a.append(b)
m = 0
n = 0
for i in range(row):
	if a[i][0] > a[i][1]:
		m += 1
	elif a[i][0] < a[i][1]:
		n += 1
if m > n:
	print('Mishka')
elif n > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m_victories = 0
c_victories = 0
for item in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		m_victories += 1
	if c > m:
		c_victories += 1
if m_victories > c_victories:
	print('Mishka')
elif c_victories > m_victories:
	print('Chris')
else:
	print('Friendship is magic!^^')


import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
N = int(input())
a = 0
b = 0
for i in range(N):
	(x, y) = map(int, input().split())
	if x < y:
		b += 1
	if x > y:
		a += 1
if a == b:
	print('Friendship is magic!^^')
elif a > b:
	print('Mishka')
else:
	print('Chris')


a = int(input())
(m, c) = (0, 0)
for i in range(a):
	lst = input().split(' ')
	(k, j) = (lst[0], lst[1])
	if k > j:
		m += 1
	elif j > k:
		c += 1
print('Mishka' if m > c else 'Chris' if c > m else 'Friendship is magic!^^')


def solve(n, rounds: list):
	m = 0
	ch = 0
	for round in rounds:
		mis = round[0]
		chs = round[1]
		if mis > chs:
			m += 1
		elif mis < chs:
			ch += 1
	if m > ch:
		print('Mishka')
	elif m < ch:
		print('Chris')
	else:
		print('Friendship is magic!^^')
cases = int(input())
i = 0
tests = []
while i < cases:
	tests.append([int(x) for x in input().split()])
	i += 1
solve(cases, tests)


n = int(input())
list_m = []
list_c = []
sum_Mishka = sum_Chris = 0
for i in range(n):
	(m, c) = map(int, input().split())
	list_m.append(m)
	list_c.append(c)
	if list_m[i] == list_c[i]:
		continue
	elif list_m[i] > list_c[i]:
		sum_Mishka += 1
	else:
		sum_Chris += 1
if sum_Mishka > sum_Chris:
	print('Mishka')
elif sum_Chris > sum_Mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


from collections import *
n = int(input())
(cta, ctb) = (0, 0)
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		cta += 1
	elif b > a:
		ctb += 1
if cta > ctb:
	print('Mishka')
elif cta < ctb:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count1 = 0
count2 = 0
for i in range(n):
	(m, c) = map(int, input().split(' '))
	if m > c:
		count1 += 1
	elif m < c:
		count2 += 1
if count1 > count2:
	print('Mishka')
elif count1 < count2:
	print('Chris')
elif count1 == count2:
	print('Friendship is magic!^^')


n = int(input())
rounds = [list(map(int, input().split())) for i in range(n)]
(counter1, counter2) = (0, 0)
for round in rounds:
	if round[0] > round[1]:
		counter1 += 1
	if round[0] == round[1]:
		counter1 += 1
		counter2 += 1
	if round[0] < round[1]:
		counter2 += 1
if counter1 > counter2:
	print('Mishka')
elif counter1 == counter2:
	print('Friendship is magic!^^')
else:
	print('Chris')


number_of_rounds = int(input())
m_score = 0
c_score = 0
for i in range(number_of_rounds):
	(mishka, chris) = [int(i) for i in input().split()]
	if mishka > chris:
		m_score += 1
	elif chris > mishka:
		c_score += 1
if m_score > c_score:
	print('Mishka')
elif c_score > m_score:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = int(input())
mi = 0
ch = 0
for i in range(x):
	y = input().split()
	if int(y[0]) > int(y[1]):
		mi += 1
	elif int(y[0]) < int(y[1]):
		ch += 1
if mi > ch:
	print('Mishka')
elif ch > mi:
	print('Chris')
else:
	print('Friendship is magic!^^')


i = int(input())
x = []
Mishka = 0
Chris = 0
for i in range(i):
	x.append(list(map(int, input().split())))
for l in range(i + 1):
	if x[l][0] > x[l][1]:
		Mishka += 1
	elif x[l][1] > x[l][0]:
		Chris += 1
	elif x[l][1] == x[l][0]:
		Mishka += 1
		Chris += 1
if Mishka > Chris:
	print('Mishka')
elif Chris > Mishka:
	print('Chris')
elif Chris == Mishka:
	print('Friendship is magic!^^')


t = int(input())
(count, count1) = (0, 0)
for i in range(t):
	(x, y) = map(int, input().split())
	if x > y:
		count += 1
	elif x < y:
		count1 += 1
	else:
		continue
if count == count1:
	print('Friendship is magic!^^')
elif count < count1:
	print('Chris')
else:
	print('Mishka')


n = int(input())
Sm = 0
Sc = 0
for i in range(n):
	(m, c) = input().split()
	if m > c:
		Sm += 1
	if c > m:
		Sc += 1
if Sm > Sc:
	print('Mishka')
elif Sc > Sm:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
c = 0
c1 = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		c = c + 1
	if a < b:
		c1 = c1 + 1
if c > c1:
	print('Mishka')
elif c == c1:
	print('Friendship is magic!^^')
else:
	print('Chris')


import math
import os
import random
import re
import sys
n = int(input())
m1 = []
c1 = []
for x in range(n):
	(m, c) = map(int, input().rstrip().split())
	if m > c:
		m1.append('w')
	elif c > m:
		c1.append('w')
if len(m1) > len(c1):
	print('Mishka')
elif len(m1) < len(c1):
	print('Chris')
else:
	print('Friendship is magic!^^')


Mishka_wins = 0
Chris_wins = 0
for i in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		Mishka_wins += 1
	elif m < c:
		Chris_wins += 1
if Mishka_wins > Chris_wins:
	print('Mishka')
elif Mishka_wins < Chris_wins:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
countm = 0
countc = 0
for i in range(1, n + 1):
	(a, b) = map(int, input().split())
	if a > b:
		countm += 1
	elif b > a:
		countc += 1
if countm > countc:
	print('Mishka')
elif countm == countc:
	print('Friendship is magic!^^')
else:
	print('Chris')


a = input()
a = int(a)
p1 = 0
p2 = 0
for i in range(a):
	b = input()
	b = b.split()
	c = list()
	for x in b:
		c.append(int(x))
	if c[0] > c[1]:
		p1 += 1
	elif c[1] > c[0]:
		p2 += 1
if p1 > p2:
	print('Mishka')
elif p2 > p1:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = eval(input())
i = 0
sum1 = 0
sum2 = 0
while i < x:
	y = input().split()
	if int(y[0]) > int(y[1]):
		sum1 = sum1 + 1
	elif int(y[0]) < int(y[1]):
		sum2 = sum2 + 1
	i += 1
if sum1 > sum2:
	print('Mishka')
elif sum1 < sum2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
num = 0
for i in range(n):
	line = str(input())
	(a, b) = line.split()
	a = int(a)
	b = int(b)
	if a > b:
		num += 1
	elif a < b:
		num -= 1
if num > 0:
	print('Mishka')
elif num < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mi = 0
ch = 0
while n > 0:
	c = input().split(' ')
	(c1, c2) = (int(c[0]), int(c[1]))
	n -= 1
	if c1 > c2:
		mi += 1
	elif c1 < c2:
		ch += 1
if mi > ch:
	print('Mishka')
elif mi < ch:
	print('Chris')
else:
	print('Friendship is magic!^^')


m = int(input())
m1 = []
c1 = []
count1 = 0
count2 = 0
for i in range(m):
	(a, b) = map(int, input().split())
	m1.append(a)
	c1.append(b)
for j in range(len(m1)):
	if m1[j] > c1[j]:
		count1 = count1 + 1
	elif m1[j] < c1[j]:
		count2 = count2 + 1
if count1 > count2:
	print('Mishka')
elif count2 > count1:
	print('Chris')
elif count1 == count2:
	print('Friendship is magic!^^')


nm = 0
nc = 0
for _ in range(int(input())):
	(m, c) = [int(i) for i in input().split()]
	if m > c:
		nm += 1
	elif m < c:
		nc += 1
if nc == nm:
	print('Friendship is magic!^^')
elif nc > nm:
	print('Chris')
else:
	print('Mishka')


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


import math
import string
n = int(input())
sum1 = 0
sum2 = 0
for i in range(n):
	(a, b) = input().split()
	if int(a) > int(b):
		sum1 += 1
	elif int(a) < int(b):
		sum2 += 1
if sum1 > sum2:
	print('Mishka')
elif sum1 < sum2:
	print('Chris')
else:
	print('Friendship is magic!^^')


tc = int(input())
(m, c) = (0, 0)
while tc > 0:
	(a, b) = [int(x) for x in input().split()]
	if a > b:
		m = m + 1
	elif b > a:
		c = c + 1
	tc = tc - 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys
n = int(input())
mw = 0
cw = 0
for i in range(n):
	(mishka, chris) = map(int, input().split())
	if mishka > chris:
		mw += 1
	if chris > mishka:
		cw += 1
if mw > cw:
	print('Mishka')
elif cw > mw:
	print('Chris')
else:
	print('Friendship is magic!^^')


N = int(input())
(a, b) = (0, 0)
for i in range(N):
	(ta, tb) = map(int, input().split())
	if ta > tb:
		a += 1
	elif ta < tb:
		b += 1
if a == b:
	print('Friendship is magic!^^')
elif a > b:
	print('Mishka')
else:
	print('Chris')


f = lambda : map(int, input().split())
mi = 0
ch = 0
for _ in range(int(input())):
	(m, c) = f()
	if m > c:
		mi += 1
	elif c > m:
		ch += 1
if mi > ch:
	print('Mishka')
elif mi == ch:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
m = 0
k = 0
while n != 0:
	a = input()
	if a[0] > a[2]:
		m += 1
	if a[0] < a[2]:
		k += 1
	n -= 1
if m > k:
	print('Mishka')
elif m < k:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
q = 0
w = 0
for i in range(a):
	(z, x) = map(int, input().split())
	if z > x:
		q += 1
	elif z < x:
		w += 1
if q > w:
	print('Mishka')
elif q < w:
	print('Chris')
else:
	print('Friendship is magic!^^')


num_rounds = int(input())
list_rounds = []
for i in range(num_rounds):
	round = []
	round = [int(x) for x in input().split()]
	list_rounds.append(round)
mishka = 0
chris = 0
for round in list_rounds:
	if round[0] > round[1]:
		mishka += 1
	elif round[1] > round[0]:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


def mishka(lis):
	winner = [0] * 2
	for i in lis:
		if i[0] == i[1]:
			pass
		else:
			maxi = max(i)
			ind = i.index(maxi)
			winner[ind] += 1
	if winner[0] > winner[1]:
		return 'Mishka'
	elif winner[0] == winner[1]:
		return 'Friendship is magic!^^'
	return 'Chris'
n = int(input())
lis = []
for i in range(n):
	lis.append([int(n) for n in input().split()])
print(mishka(lis))


mas = []
for i in range(int(input())):
	(x, y) = map(int, input().split())
	if x > y:
		mas.append('Mishka')
	elif x < y:
		mas.append('Chris')
	else:
		pass
if mas.count('Mishka') > mas.count('Chris'):
	print('Mishka')
elif mas.count('Mishka') < mas.count('Chris'):
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
i = 0
j = 0
for k in range(n):
	(m, c) = [int(w) for w in input().split()]
	if m > c:
		i += 1
	elif m < c:
		j += 1
if i > j:
	print('Mishka')
elif i < j:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m_win = 0
c_win = 0
for i in range(n):
	a = list(map(int, input().strip().split()))[:2]
	m = a[0]
	c = a[1]
	if m > c:
		m_win += 1
	elif c > m:
		c_win += 1
if m_win > c_win:
	print('Mishka')
elif c_win > m_win:
	print('Chris')
else:
	print('Friendship is magic!^^')


cnt = 0
for x in range(int(input().strip())):
	(scorel, scorer) = map(int, input().strip().split(' '))
	if scorel > scorer:
		cnt += 1
	elif scorel < scorer:
		cnt -= 1
print('Mishka' if cnt > 0 else 'Chris' if cnt != 0 else 'Friendship is magic!^^')


n = int(input())
White = 0
Black = 0
for i in range(n):
	(n, m) = map(int, input().split())
	if n > m:
		White += 1
	elif n < m:
		Black += 1
if White > Black:
	print('Mishka')
elif White < Black:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
l = []
mi = 0
cr = 0
for i in range(n):
	m = []
	m = list(map(int, input().split()))
	l.append(m)
for i in range(len(l)):
	if l[i][0] > l[i][1]:
		mi = mi + 1
	elif l[i][0] < l[i][1]:
		cr = cr + 1
if mi > cr:
	print('Mishka')
elif cr > mi:
	print('Chris')
else:
	print('Friendship is magic!^^')


from typing import List

def parse_input() -> List[List[int]]:
	n = int(input())
	return [[int(x) for x in input().split()] for _ in range(n)]

def solve(scores: List[List[int]]) -> str:
	mishka = 0
	chris = 0
	for (m, c) in scores:
		if m > c:
			mishka += 1
		if c > m:
			chris += 1
	if mishka > chris:
		return 'Mishka'
	elif chris > mishka:
		return 'Chris'
	else:
		return 'Friendship is magic!^^'
print(solve(parse_input()))


s = []
for i in range(int(input())):
	l = list((int(x) for x in input().split()))
	if l[0] == l[1]:
		s.append(0)
		s.append(1)
	else:
		s.append(l.index(max(l)))
if s.count(0) > s.count(1):
	print('Mishka')
elif s.count(1) > s.count(0):
	print('Chris')
else:
	print('Friendship is magic!^^')


is_debug = False
n = int(input())
(w_m, w_c) = (0, 0)
for i in range(0, n):
	(m, c) = [int(x) for x in input().split()]
	if m > c:
		w_m = w_m + 1
	elif c > m:
		w_c = w_c + 1
if w_m == w_c:
	print(f'Friendship is magic!^^')
else:
	print(f"{('Mishka' if w_m > w_c else 'Chris')}")


t = int(input())
mich = 0
carl = 0
for _ in range(t):
	(m, c) = input().split(' ')
	(m, c) = (int(m), int(c))
	if m > c:
		mich += 1
	elif c > m:
		carl += 1
if mich > carl:
	print('Mishka')
elif carl > mich:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mCount = 0
cCount = 0
for _ in range(n):
	(mik, chris) = input().split(' ')
	if int(mik) > int(chris):
		mCount += 1
	elif int(mik) < int(chris):
		cCount += 1
if mCount > cCount:
	print('Mishka')
elif mCount < cCount:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input(''))
currentMishkaScore = 0
currentChrisScore = 0
for _round in range(rounds):
	(mishkaScore, chrisScore) = input('').split(' ')
	if mishkaScore > chrisScore:
		currentMishkaScore = currentMishkaScore + 1
	elif chrisScore > mishkaScore:
		currentChrisScore = currentChrisScore + 1
if currentMishkaScore > currentChrisScore:
	print('Mishka')
	quit()
elif currentChrisScore > currentMishkaScore:
	print('Chris')
	quit()
elif currentMishkaScore == currentChrisScore:
	print('Friendship is magic!^^')
	quit()


n = int(input(''))
Mishka_win = 0
Chris_win = 0
for i in range(0, n):
	s = str(input(''))
	line = s.split(' ')
	Mishka_dice = int(line[0])
	Chris_dice = int(line[1])
	if Mishka_dice > Chris_dice:
		Mishka_win += 1
	elif Mishka_dice < Chris_dice:
		Chris_win += 1
if Mishka_win > Chris_win:
	print('Mishka', end='')
elif Mishka_win < Chris_win:
	print('Chris', end='')
else:
	print('Friendship is magic!^^', end='')


t = int(input())
mis = 0
cri = 0
while t:
	t -= 1
	(mish, chri) = [int(i) for i in input().split()]
	if mish > chri:
		mis += 1
	elif mish < chri:
		cri += 1
if mis > cri:
	print('Mishka')
elif mis < cri:
	print('Chris')
else:
	print('Friendship is magic!^^')


(n, mishka, chris) = (int(input()), int(), int())
for i in range(n):
	(a, b) = [int(i) for i in input().split()]
	if a == b:
		continue
	if a > b:
		mishka += 1
	else:
		chris += 1
if mishka == chris:
	print('Friendship is magic!^^')
elif mishka > chris:
	print('Mishka')
else:
	print('Chris')


number = int(input())
one = 0
two = 0
count = 0
for i in range(number):
	word = [int(i) for i in input().split()]
	if word[0] < word[1]:
		two += 1
	elif word[0] > word[1]:
		one += 1
	else:
		count += 1
if one > two:
	print('Mishka')
elif two > one:
	print('Chris')
else:
	print('Friendship is magic!^^')


__author__ = 'artyom'

def main():
	c = m = 0
	n = read()
	for _ in range(n):
		(a, b) = read(3)
		if a < b:
			c += 1
		elif a > b:
			m += 1
	return 'Mishka' if m > c else 'Chris' if c > m else 'Friendship is magic!^^'

def read(mode=1, size=None):
	if mode == 0:
		return input().strip()
	if mode == 1:
		return int(input().strip())
	if mode == 2:
		return input().strip().split()
	if mode == 3:
		return list(map(int, input().strip().split()))
	a = []
	for _ in range(size):
		a.append(read(3))
	return a

def write(s='\n'):
	if s is None:
		s = ''
	if isinstance(s, tuple) or isinstance(s, list):
		s = ' '.join(map(str, s))
	s = str(s)
	print(s, end='\n')
res = main()
write(res)


game = ''
n = int(input())
for i in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		game = game + 'm'
	if c > m:
		game = game + 'c'
if game.count('m') > game.count('c'):
	print('Mishka')
	exit()
if game.count('m') < game.count('c'):
	print('Chris')
	exit()
if game.count('m') == game.count('c'):
	print('Friendship is magic!^^')


cnt = 0
s = 0
a = int(input())
for i in range(a):
	(b, c) = map(int, input().split())
	if b > c:
		cnt += 1
	elif c > b:
		s += 1
if cnt > s:
	print('Mishka')
elif s > cnt:
	print('Chris')
else:
	print('Friendship is magic!^^')


from functools import reduce
from math import copysign
n = int(input())
rounds = [tuple(map(lambda x: int(x), input().split())) for _ in range(n)]
result = 0
for (m, c) in rounds:
	if m > c:
		result += 1
	elif m < c:
		result -= 1
if result > 0:
	print('Mishka')
elif result < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


sm = 0
sc = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		sm += 1
	elif m < c:
		sc += 1
if sm > sc:
	print('Mishka')
elif sm < sc:
	print('Chris')
else:
	print('Friendship is magic!^^')


(_1, _2) = (0, 0)
for i in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		_1 += 1
	elif m < c:
		_2 += 1
if _1 > _2:
	print('Mishka')
elif _1 < _2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
l = []
l.extend((input().split() for i in range(n)))
c1 = sum((i[0] > i[1] for i in l))
c2 = sum((i[0] < i[1] for i in l))
if c1 > c2:
	print('Mishka')
elif c1 < c2:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
p1_wins = 0
p2_wins = 0
for i in range(rounds):
	(p1_dice, p2_dice) = map(int, input().split(' '))
	if p1_dice > p2_dice:
		p1_wins += 1
	elif p1_dice < p2_dice:
		p2_wins += 1
if p1_wins > p2_wins:
	print('Mishka')
elif p1_wins < p2_wins:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = []
k = []
for i in range(n):
	(M, K) = map(int, input().split())
	if M > K:
		m.append(1)
	elif M < K:
		k.append(1)
if sum(m) > sum(k):
	print('Mishka')
elif sum(m) < sum(k):
	print('Chris')
elif sum(m) == sum(k):
	print('Friendship is magic!^^')


n = int(input())
sux = 0
suc = 0
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		sux += 1
	elif y > x:
		suc += 1
	else:
		sux += 1
		suc += 1
if sux > suc:
	print('Mishka')
elif sux < suc:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


a = int(input())
b = []
for i in range(a):
	b.append(input().split())
for j in range(a):
	b[j][0] = int(b[j][0])
	b[j][1] = int(b[j][1])
Mishka = int(0)
Chris = int(0)
for k in range(a):
	if b[k][0] > b[k][1]:
		Mishka += 1
	elif b[k][0] < b[k][1]:
		Chris += 1
	elif b[k][0] == b[k][1]:
		pass
if Mishka > Chris:
	print('Mishka')
elif Mishka < Chris:
	print('Chris')
elif Mishka == Chris:
	print('Friendship is magic!^^')


n = int(input())
m_total = 0
c_total = 0
for i in range(n):
	(m, c) = input().split()
	(m, c) = (int(m), int(c))
	if m > c:
		m_total = m_total + 1
	elif c > m:
		c_total = c_total + 1
if m_total > c_total:
	print('Mishka')
elif m_total < c_total:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
tab = [0, 0]
for i in range(n):
	mc = [int(a) for a in input().split(' ')]
	if mc[0] != mc[1]:
		tab[mc.index(max(mc))] += 1
if tab[0] > tab[1]:
	print('Mishka')
elif tab[0] < tab[1]:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	n = int(input())
	games = [None] * n
	for i in range(n):
		games[i] = [int(x) for x in input().split()]
	print(solver(n, games))

def solver(n, L):
	mPoints = 0
	cPoints = 0
	for [m, c] in L:
		if m > c:
			mPoints += 1
		elif m < c:
			cPoints += 1
	if mPoints < cPoints:
		return 'Chris'
	elif mPoints > cPoints:
		return 'Mishka'
	else:
		return 'Friendship is magic!^^'
main()


l = []
for item in range(int(input())):
	(a, b) = list(map(int, input().split()))
	if a > b:
		l.append('M')
	elif a < b:
		l.append('C')
if l.count('M') > l.count('C'):
	print('Mishka')
elif l.count('M') < l.count('C'):
	print('Chris')
else:
	print('Friendship is magic!^^')


size = int(input())
Mishka = 0
Chris = 0
for i in range(size):
	(a, b) = input().split(' ')
	a = int(a)
	b = int(b)
	if a > b:
		Mishka += 1
	elif a < b:
		Chris += 1
	else:
		pass
if Mishka > Chris:
	print('Mishka')
elif Mishka < Chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mcon = 0
ccon = 0
while n != 0:
	(m, c) = input().split()
	if m > c:
		mcon += 1
	elif m < c:
		ccon += 1
	n -= 1
if mcon > ccon:
	print('Mishka')
elif mcon < ccon:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
M = 'Mishka'
m = 0
C = 'Chris'
c = 0
F = 'Friendship is magic!^^'
for i in range(n):
	(mk, ck) = map(int, input().split())
	if mk > ck:
		m += 1
	elif mk < ck:
		c += 1
if m > c:
	print(M)
elif m < c:
	print(C)
else:
	print(F)


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


n = int(input())
cnt0 = 0
cnt1 = 0
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		cnt0 += 1
	elif x < y:
		cnt1 += 1
if cnt0 == cnt1:
	print('Friendship is magic!^^')
elif cnt0 > cnt1:
	print('Mishka')
else:
	print('Chris')


def main():
	n = int(input())
	mis = chi = 0
	for i in range(n):
		(m, c) = map(int, input().split(' '))
		if m < c:
			chi += 1
		elif m > c:
			mis += 1
	if chi == mis:
		print('Friendship is magic!^^')
	elif chi < mis:
		print('Mishka')
	else:
		print('Chris')
main()


k = 0
n = int(input())
for _ in range(n):
	(m, l) = map(int, input().split())
	k = k + (1 if m > l else -1 if m < l else 0)
print('Mishka' if k > 0 else 'Chris' if k < 0 else 'Friendship is magic!^^')


n = int(input())
k1 = 0
k2 = 0
for i in range(n):
	a = [int(i) for i in input().split(' ')]
	s1 = a[0]
	s2 = a[1]
	if s1 > s2:
		k1 = k1 + 1
	elif s2 > s1:
		k2 = k2 + 1
if k1 > k2:
	print('Mishka')
elif k2 > k1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mw = 0
cw = 0
for r in range(n):
	(m, c) = [int(d) for d in input().split(' ')]
	if m > c:
		mw += 1
	elif c > m:
		cw += 1
if mw > cw:
	print('Mishka')
elif cw > mw:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
countM = 0
countC = 0
round_info = []
for i in range(rounds):
	(a, b) = input().split()
	(a, b) = (int(a), int(b))
	round_info.append([a, b])
for i in round_info:
	a = i[0]
	b = i[1]
	if a > b:
		countM += 1
	elif a == b:
		continue
	else:
		countC += 1
if countM > countC:
	print('Mishka')
elif countM == countC:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
(MishkaScore, ChrisScore) = (0, 0)
(MishkaWins, ChrisWins) = (0, 0)
for i in range(n):
	(MishkaScore, ChrisScore) = map(int, input().split())
	if MishkaScore > ChrisScore:
		MishkaWins += 1
	elif ChrisScore > MishkaScore:
		ChrisWins += 1
	else:
		continue
if MishkaWins > ChrisWins:
	print('Mishka')
elif ChrisWins > MishkaWins:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys
import math
import bisect
from sys import stdin, stdout
from math import gcd, floor, sqrt, log
from collections import defaultdict as dd
from bisect import bisect_left as bl, bisect_right as br
sys.setrecursionlimit(100000000)
ii = lambda : int(input())
si = lambda : input()
jn = lambda x, l: x.join(map(str, l))
sl = lambda : list(map(str, input().strip()))
mi = lambda : map(int, input().split())
mif = lambda : map(float, input().split())
lii = lambda : list(map(int, input().split()))
ceil = lambda x: int(x) if x == int(x) else int(x) + 1
ceildiv = lambda x, d: x // d if x % d == 0 else x // d + 1
flush = lambda : stdout.flush()
stdstr = lambda : stdin.readline()
stdint = lambda : int(stdin.readline())
stdpr = lambda x: stdout.write(str(x))
mod = 1000000007
m = 0
c = 0
for _ in range(ii()):
	(a, b) = mi()
	if a > b:
		m += 1
	elif b > a:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count1 = 0
count2 = 0
while n != 0:
	(a, b) = map(int, input().split())
	if a == b:
		n = n - 1
		continue
	elif a > b:
		count1 += 1
	else:
		count2 += 1
	n = n - 1
if count1 == count2:
	print('Friendship is magic!^^')
elif count2 > count1:
	print('Chris')
elif count1 > count2:
	print('Mishka')


x = int(input())
m = 0
c = 0
for i in range(x):
	(y, z) = map(int, input().split())
	if y > z:
		m = m + 1
	if y < z:
		c = c + 1
if m > c:
	print('Mishka')
if m < c:
	print('Chris')
if m == c:
	print('Friendship is magic!^^')


from random import randint
n = int(input())
q = 0
t = 0
for i in range(n):
	(w, e) = map(int, input().split())
	if w > e:
		q += 1
	elif w < e:
		t += 1
if q > t:
	print('Mishka')
elif q < t:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
countM = 0
countC = 0
for i in range(n):
	score = [int(x) for x in input().split(' ')]
	if score[0] > score[1]:
		countM += 1
	elif score[0] < score[1]:
		countC += 1
if countM > countC:
	print('Mishka')
elif countM < countC:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
sa = 0
for x in range(n):
	(p, k) = list(map(int, input().split()))
	if p > k:
		sa += 1
	elif p == k:
		pass
	else:
		sa -= 1
if sa > 0:
	print('Mishka')
elif sa == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


import sys
for s in sys.stdin:
	(n0, n1) = (0, 0)
	for i in range(0, int(s)):
		num = list(map(int, str(input()).split(' ')))
		if num[0] > num[1]:
			n0 += 1
		elif num[1] > num[0]:
			n1 += 1
	if n0 > n1:
		print('Mishka')
	elif n1 > n0:
		print('Chris')
	else:
		print('Friendship is magic!^^')


n = int(input())
w1 = 0
w2 = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		w1 += 1
	elif b > a:
		w2 += 1
if w1 > w2:
	print('Mishka')
elif w2 > w1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
i = 0
num = list()
while i < n:
	num.append(input())
	i += 1
arr = []
for i in num:
	count = 0
	for j in range(0, len(i)):
		if i[j] == ' ':
			arr.append(int(i[count:j]))
			count = j + 1
		elif j == len(i) - 1:
			arr.append(int(i[count:len(i)]))
mishka = 0
chris = 0
for i in range(0, len(arr) - 1, 2):
	if arr[i] > arr[i + 1]:
		mishka += 1
	elif arr[i] < arr[i + 1]:
		chris += 1
if chris > mishka:
	print('Chris')
elif mishka > chris:
	print('Mishka')
else:
	print('Friendship is magic!^^')


import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from functools import lru_cache
import bisect
import re
import queue
from decimal import *

class Scanner:

	@staticmethod
	def int():
		return int(sys.stdin.readline().rstrip())

	@staticmethod
	def string():
		return sys.stdin.readline().rstrip()

	@staticmethod
	def map_int():
		return [int(x) for x in Scanner.string().split()]

	@staticmethod
	def string_list(n):
		return [input() for i in range(n)]

	@staticmethod
	def int_list_list(n):
		return [Scanner.map_int() for i in range(n)]

	@staticmethod
	def int_cols_list(n):
		return [int(input()) for i in range(n)]

class Math:

	@staticmethod
	def gcd(a, b):
		if b == 0:
			return a
		return Math.gcd(b, a % b)

	@staticmethod
	def lcm(a, b):
		return a * b // Math.gcd(a, b)

	@staticmethod
	def divisor(n):
		res = []
		i = 1
		for i in range(1, int(n ** 0.5) + 1):
			if n % i == 0:
				res.append(i)
				if i != n // i:
					res.append(n // i)
		return res

	@staticmethod
	def round_up(a, b):
		return -(-a // b)

	@staticmethod
	def is_prime(n):
		if n < 2:
			return False
		if n == 2:
			return True
		if n % 2 == 0:
			return False
		d = int(n ** 0.5) + 1
		for i in range(3, d + 1, 2):
			if n % i == 0:
				return False
		return True

class PriorityQueue:

	def __init__(self, l=[]):
		self.q = l
		heapq.heapify(self.q)
		return

	def push(self, n):
		heapq.heappush(self.q, n)
		return

	def pop(self):
		return heapq.heappop(self.q)

def pop_count(x):
	x = x - (x >> 1 & 6148914691236517205)
	x = (x & 3689348814741910323) + (x >> 2 & 3689348814741910323)
	x = x + (x >> 4) & 1085102592571150095
	x = x + (x >> 8)
	x = x + (x >> 16)
	x = x + (x >> 32)
	return x & 127
MOD = int(1000000000.0) + 7
INF = int(1000000000000000.0)

def main():
	N = Scanner.int()
	(M, C) = (0, 0)
	for _ in range(N):
		(m, c) = Scanner.map_int()
		if m > c:
			M += 1
		elif m < c:
			C += 1
	if M == C:
		print('Friendship is magic!^^')
	elif M > C:
		print('Mishka')
	else:
		print('Chris')
main()


x = int(input())
L = []
for i in range(x):
	L.append(list(map(int, input().split())))
count1 = 0
count2 = 0
for i in range(x):
	if L[i][0] > L[i][1]:
		count1 += 1
	if L[i][0] < L[i][1]:
		count2 += 1
if count1 == count2:
	print('Friendship is magic!^^')
elif count1 > count2:
	print('Mishka')
else:
	print('Chris')


countm = 0
countc = 0
n = int(input())
if n >= 1 and n <= 100:
	for i in range(n):
		(m, c) = map(int, input().split())
		if m > c:
			countm = countm + 1
		if c > m:
			countc = countc + 1
if countc == countm:
	print('Friendship is magic!^^')
if countm > countc:
	print('Mishka')
if countc > countm:
	print('Chris')


n = int(input())
m = 0
c = 0
for i in range(n):
	(m_dice, c_dice) = map(int, input().split())
	if m_dice > c_dice:
		m += 1
	if c_dice > m_dice:
		c += 1
if m > c:
	print('Mishka')
if c > m:
	print('Chris')
if c == m:
	print('Friendship is magic!^^')


n = int(input())
count_m = 0
count_c = 0
for _ in range(n):
	(m, c) = input().split(' ')
	if m > c:
		count_m += 1
	elif m < c:
		count_c += 1
	else:
		continue
if count_m > count_c:
	print('Mishka')
elif count_m < count_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


(ca, cb, cc) = (0, 0, 0)
l1 = []
l2 = []
for O in range(int(input())):
	(a, b) = map(int, input().split())
	l1.append(a)
	l2.append(b)
for i in range(len(l1)):
	if l1[i] > l2[i]:
		ca += 1
	elif l1[i] < l2[i]:
		cb += 1
if ca > cb:
	print('Mishka')
elif cb > ca:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
k1 = 0
k2 = 0
i = 1
while i <= n:
	(b, c) = map(int, input().split())
	if b > c:
		k1 = k1 + 1
	if b < c:
		k2 = k2 + 1
	i = i + 1
if k1 > k2:
	print('Mishka')
if k1 < k2:
	print('Chris')
if k1 == k2:
	print('Friendship is magic!^^')


count_M = 0
count_C = 0
n = int(input().strip())
for i in range(n):
	num = list(map(int, input().strip().split()))
	if num[0] > num[1]:
		count_M += 1
	elif num[0] < num[1]:
		count_C += 1
if count_C > count_M:
	print('Chris')
elif count_M > count_C:
	print('Mishka')
else:
	print('Friendship is magic!^^')


s = 0
for i in range(int(input())):
	(a, b) = input().split()
	s += (a > b) - (a < b)
print(['Friendship is magic!^^', 'Chris', 'Mishka'][(s < 0) - (s > 0)])


Q1 = 0
Q2 = 0
for z in range(int(input())):
	(q1, q2) = map(int, input().split())
	if q1 > q2:
		Q1 += 1
	elif q2 > q1:
		Q2 += 1
if Q1 > Q2:
	print('Mishka')
elif Q2 > Q1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count = 0
mishka = 0
chris = 0
tie = 0
while True:
	(m, c) = input().split()
	m = int(m)
	c = int(c)
	if m > c:
		mishka = mishka + 1
	elif c > m:
		chris = chris + 1
	count = count + 1
	if count == n:
		break
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mish = 0
kris = 0
i = 1
while i <= n:
	(a, b) = map(int, input().split())
	if a > b:
		mish += 1
	if a < b:
		kris += 1
	i += 1
if mish > kris:
	print('Mishka')
if mish < kris:
	print('Chris')
if mish == kris:
	print('Friendship is magic!^^')


test = int(input())
m = c = 0
for _ in range(test):
	(mi, ci) = map(int, input().split())
	if mi > ci:
		m += 1
	elif ci > mi:
		c += 1
if m > c:
	print('Mishka')
elif m == c:
	print('Friendship is magic!^^')
else:
	print('Chris')


import sys
x = int(input())
m = 0
c = 0
for i in range(x):
	l = list(map(int, input().split()))
	if l[0] > l[1]:
		m += 1
	elif l[1] > l[0]:
		c += 1
	else:
		m += 1
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


T = int(input())
count_m = 0
count_c = 0
for i in range(T):
	(m, c) = map(int, input().split(' '))
	if m > c:
		count_m += 1
	elif m < c:
		count_c += 1
	elif m == c:
		count_m += 0
		count_c += 0
if count_m > count_c:
	print('Mishka')
elif count_m < count_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


def winner(li1: list, li2: list) -> str:
	mish_cnt = 0
	chri_cnt = 0
	for i in range(len(li1)):
		if li1[i] > li2[i]:
			mish_cnt += 1
		elif li1[i] < li2[i]:
			chri_cnt += 1
		else:
			continue
	if mish_cnt == chri_cnt:
		return 'Friendship is magic!^^'
	elif mish_cnt > chri_cnt:
		return 'Mishka'
	else:
		return 'Chris'

def main():
	n = int(input())
	li1 = []
	li2 = []
	while n > 0:
		(p, q) = map(int, input().split())
		li1.append(p)
		li2.append(q)
		n = n - 1
	print(winner(li1, li2))
main()


x = int(input())
output = 0
for i in range(x):
	(y, z) = map(int, input().split())
	n = y - z
	if n > 0:
		output += 1
	elif n < 0:
		output -= 1
	i += 1
if output > 0:
	print('Mishka')
elif output < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


import math
n = int(input())
cnt = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		cnt += 1
	elif a < b:
		cnt -= 1
if cnt == 0:
	print('Friendship is magic!^^')
elif cnt > 0:
	print('Mishka')
else:
	print('Chris')


c1 = 0
c2 = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		c1 += 1
	if c > m:
		c2 += 1
if c1 > c2:
	print('Mishka')
elif c2 > c1:
	print('Chris')
else:
	print('Friendship is magic!^^')


import time

def calculateWinnerPolarDice(rounds):
	mishkaSum = 0
	chrisSum = 0
	drawSum = 0
	outRes = ''
	for x in range(rounds):
		(mishka, chris) = [int(x) for x in input().split()]
		(mishkaSum, chrisSum) = determineRoundWinner(mishka, chris, mishkaSum, chrisSum)
	if mishkaSum > chrisSum:
		outRes = 'Mishka'
	elif mishkaSum < chrisSum:
		outRes = 'Chris'
	else:
		outRes = 'Friendship is magic!^^'
	return outRes

def determineRoundWinner(mishka, chris, mishkaSum, chrisSum):
	if mishka > chris:
		mishkaSum += 1
	elif mishka < chris:
		chrisSum += 1
	return (mishkaSum, chrisSum)

def solve():
	rounds = int(input())
	print(calculateWinnerPolarDice(rounds))
solve()


n = int(input())
w = [0, 0]
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		w[0] += 1
	elif a < b:
		w[1] += 1
	else:
		pass
if w[0] == w[1]:
	print('Friendship is magic!^^')
elif w[0] > w[1]:
	print('Mishka')
else:
	print('Chris')


(a, b, c) = (0, 0, 0)
for i in range(int(input())):
	(l, k) = map(int, input().split())
	if l > k:
		a += 1
	if l < k:
		b += 1
	if l == k:
		c += 1
if a == b or (a == 0 and b == 0):
	print('Friendship is magic!^^')
else:
	print('MCihsrhiksa'[a < b::2])


n = int(input())
mc = 0
cc = 0
while n:
	(m, c) = map(int, input().split())
	if m > c:
		mc += 1
	elif c > m:
		cc += 1
	n -= 1
if mc > cc:
	print('Mishka')
elif mc < cc:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
games = []
s1 = 0
s2 = 0
for i in range(0, n):
	games.append(input().split())
for i in range(0, n):
	if games[i][0] > games[i][1]:
		s1 += 1
	elif games[i][0] == games[i][1]:
		pass
	else:
		s2 += 1
if s1 > s2:
	print('Mishka')
elif s1 == s2:
	print('Friendship is magic!^^')
else:
	print('Chris')


def read_array():
	x = []
	x1 = []
	x = input()
	x = x.split(' ')
	for r in range(len(x)):
		x1.append(int(x[r]))
	return x1
y = int(input())
(miska, miska_res) = (0, 0)
(chris, chris_res) = (0, 0)
for r in range(y):
	x = read_array()
	miska = x[0]
	chris = x[1]
	if miska > chris:
		miska_res += 1
	elif chris > miska:
		chris_res += 1
if miska_res == chris_res:
	print('Friendship is magic!^^')
elif miska_res > chris_res:
	print('Mishka')
elif chris_res > miska_res:
	print('Chris')


x = int(input())
k = 0
k2 = 0
for i in range(x):
	(a, b) = map(int, input().split())
	if a > b:
		k += 1
	elif b > a:
		k2 += 1
if k > k2:
	print('Mishka')
elif k2 > k:
	print('Chris')
else:
	print('Friendship is magic!^^')


from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
import math
import string
import itertools
import fractions
import heapq
import collections
import re
import array
import bisect

def array2d(d1, d2, init=None):
	return [[init for _ in range(d2)] for _ in range(d1)]
n = int(input())
cnt_m = 0
cnt_c = 0
for i in range(n):
	(m, c) = map(int, input().split(' '))
	if m > c:
		cnt_m += 1
	elif m < c:
		cnt_c += 1
if cnt_m > cnt_c:
	print('Mishka')
elif cnt_m == cnt_c:
	print('Friendship is magic!^^')
else:
	print('Chris')


t = int(input())
i = count = countt = 0
while i < t:
	i = i + 1
	(m1, c1) = input().split()
	m = int(m1)
	c = int(c1)
	if m > c:
		count = count + 1
	if c > m:
		countt = countt + 1
if count > countt:
	print('Mishka')
if countt > count:
	print('Chris')
if count == countt:
	print('Friendship is magic!^^')


number = int(input())
winMishka = 0
winChris = 0
for _ in range(0, number):
	numbers = list(map(int, input().split()))
	if numbers[0] > numbers[1]:
		winMishka += 1
	elif numbers[0] < numbers[1]:
		winChris += 1
if winMishka > winChris:
	print('Mishka')
elif winMishka < winChris:
	print('Chris')
else:
	print('Friendship is magic!^^')


m = 0
c = 0
for _ in range(int(input())):
	r = list(map(int, input().split()))
	if r[0] > r[1]:
		m += 1
	elif r[1] > r[0]:
		c += 1
	else:
		pass
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


reps = int(input())
mishka = 0
chris = 0
for i in range(0, reps):
	a = [int(x) for x in input().split()]
	if a[0] < a[1]:
		chris += 1
	elif a[0] > a[1]:
		mishka += 1
if mishka < chris:
	print('Chris')
elif mishka == chris:
	print('Friendship is magic!^^')
else:
	print('Mishka')


mcount = 0
scount = 0
for _ in range(int(input())):
	(m, s) = input().split()
	if m > s:
		mcount += 1
	elif m < s:
		scount += 1
	else:
		mcount += 1
		scount += 1
if mcount > scount:
	print('Mishka')
elif mcount < scount:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
score = 0
for i in range(n):
	a = input().split()
	if int(a[0]) > int(a[1]):
		score += 1
	elif int(a[0]) < int(a[1]):
		score -= 1
	else:
		continue
if score > 0:
	print('Mishka')
elif score < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mik = 0
chris = 0
for _ in range(n):
	arr = list(map(int, input().split()))
	if arr[0] > arr[1]:
		mik += 1
		arr = []
	elif arr[0] < arr[1]:
		chris += 1
		arr = []
if mik > chris:
	print('Mishka')
elif mik < chris:
	print('Chris')
elif mik == chris:
	print('Friendship is magic!^^')


class dicegames:

	def __init__(self, m, c):
		self.m = m
		self.c = c
n = int(input())
arr = []
for i in range(n):
	(m, c) = map(int, input().split())
	arr.append(dicegames(m, c))
miskha = 0
chris = 0
ans = 0
for i in range(n):
	if arr[i].m > arr[i].c:
		miskha += 1
	elif arr[i].m < arr[i].c:
		chris += 1
	else:
		miskha == miskha
		chris == chris
if miskha > chris:
	print('Mishka')
elif miskha < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
nishka = 0
chris = 0
for i in range(n):
	(l, k) = map(int, input().split())
	if l > k:
		nishka += 1
	elif l == k:
		pass
	else:
		chris += 1
if nishka > chris:
	print('Mishka')
elif nishka == chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
mc = 0
cc = 0
for i in range(n):
	(md, cd) = map(int, input().split())
	if md < cd:
		cc += 1
	elif md > cd:
		mc += 1
if mc > cc:
	print('Mishka')
elif cc > mc:
	print('Chris')
elif mc == cc:
	print('Friendship is magic!^^')


mcount = 0
ccount = 0
n = int(input())
for i in range(n):
	(m, c) = (int(x) for x in input().split())
	if m > c:
		mcount += 1
	elif m < c:
		ccount += 1
if mcount > ccount:
	print('Mishka')
elif mcount < ccount:
	print('Chris')
else:
	print('Friendship is magic!^^')


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


try:
	t = int(input())
	i = 0
	m = 0
	c = 0
	while i < t:
		l = list(map(int, input().split()))
		if l[0] > l[1]:
			m += 1
		if l[0] < l[1]:
			c += 1
		i += 1
	if m > c:
		print('Mishka')
	elif m < c:
		print('Chris')
	else:
		print('Friendship is magic!^^')
except:
	pass


score = 0
for i in range(int(input())):
	(a, b) = list(map(int, input().split()))
	score += (a > b) - (b > a)
print('Mishka' * (score > 0) + 'Chris' * (score < 0) + 'Friendship is magic!^^' * (score == 0))


import sys
n = int(sys.stdin.readline())
m_wins = 0
c_wins = 0
for (m, c) in map(lambda line: map(int, line.split()), sys.stdin):
	if m > c:
		m_wins += 1
	elif c > m:
		c_wins += 1
if m_wins > c_wins:
	print('Mishka')
elif c_wins > m_wins:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mi = 0
kr = 0
for i in range(n):
	c = input()
	c1 = c.split()
	q = int(c1[0])
	w = int(c1[1])
	if q > w:
		mi += 1
	elif w > q:
		kr += 1
if mi > kr:
	print('Mishka')
elif kr > mi:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
suma = sumb = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		suma += 1
	if b > a:
		sumb += 1
if suma > sumb:
	print('Mishka')
elif sumb > suma:
	print('Chris')
elif suma == sumb:
	print('Friendship is magic!^^')


a = int(input())
no_of_lines = a
lines = ''
for i in range(a):
	lines += input() + '\n'
b = lines.split()
M = 0
C = 0
b = [0] + b
for i in range(1, a + 1):
	if int(b[2 * i - 1]) > int(b[2 * i]):
		M = M + 1
	elif int(b[2 * i]) > int(b[2 * i - 1]):
		C = C + 1
if M > C:
	print('Mishka')
elif C > M:
	print('Chris')
elif M == C:
	print('Friendship is magic!^^')


(mc, cc) = (0, 0)
for _ in range(int(input())):
	(mi, ci) = map(int, input().split())
	if mi > ci:
		mc += 1
	elif mi < ci:
		cc += 1
if mc > cc:
	print('Mishka')
elif mc < cc:
	print('Chris')
else:
	print('Friendship is magic!^^')


class Main:
	n = int(input())
	rounds = []
	for i in range(n):
		rounds.append(input().split(' '))
	for round in rounds:
		(round[0], round[1]) = (int(round[0]), int(round[1]))
	(m, c) = (0, 0)
	for round in rounds:
		if round[0] > round[1]:
			m += 1
		elif round[0] < round[1]:
			c += 1
	if m > c:
		print('Mishka')
	elif m < c:
		print('Chris')
	else:
		print('Friendship is magic!^^')
Main()


rounds = int(input())
mishkaWins = 0
chrisWins = 0
while rounds > 0:
	(m, c) = [int(i) for i in input().split(' ')]
	if m > c:
		mishkaWins = mishkaWins + 1
	elif c > m:
		chrisWins = chrisWins + 1
	rounds = rounds - 1
if mishkaWins > chrisWins:
	print('Mishka')
elif chrisWins > mishkaWins:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys
local_launch = False
try:
	open('LOCAL').read()
	local_launch = True
except:
	pass
input_data = open('INPUT.txt').read() if local_launch else sys.stdin.read()
done = {'i': 0}
tokens = input_data.split()

def next_token():
	result = tokens[done['i']]
	done['i'] += 1
	return result

def next_int():
	return int(next_token())

def next_str():
	return next_token()
n = next_int()
count = 0
misha = 0
chris = 0
while count != n:
	count += 1
	miha = next_int()
	chis = next_int()
	if miha > chis:
		misha += 1
	elif miha == chis:
		miha += 1
		chis += 1
	else:
		chris += 1
if misha == chris:
	print('Friendship is magic!^^')
elif misha > chris:
	print('Mishka')
else:
	print('Chris')


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


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


listA = []
listB = []
miskhka = 0
Chris = 0
draw = 0
n = int(input())
for i in range(0, n):
	a = list(map(int, input().split()))
	listA.append(a[0])
	listB.append(a[1])
for i in range(0, n, 1):
	if listA[i] > listB[i]:
		miskhka = miskhka + 1
	elif listB[i] > listA[i]:
		Chris = Chris + 1
	else:
		draw = draw + 1
if miskhka > Chris:
	print('Mishka')
elif Chris > miskhka:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
m1 = 0
m2 = 0
while t:
	n = input().split()
	a = n[0]
	b = n[1]
	if a > b:
		m1 = m1 + 1
	elif b > a:
		m2 = m2 + 1
	t = t - 1
if m1 > m2:
	print('Mishka')
elif m2 > m1:
	print('Chris')
else:
	print('Friendship is magic!^^')


p1 = p2 = 0
for _ in range(int(input())):
	(a, b) = map(int, input().split())
	if a > b:
		p1 += 1
	elif b > a:
		p2 += 1
if p1 > p2:
	print('Mishka')
elif p2 > p1:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import stdin
rounds = int(stdin.readline())
mis = 0
chris = 0
for i in range(rounds):
	score = list(map(int, stdin.readline().split()))
	if score[0] > score[1]:
		mis += 1
	elif score[0] < score[1]:
		chris += 1
	else:
		mis += 1
		chris += 1
if mis == chris:
	print('Friendship is magic!^^')
elif mis > chris:
	print('Mishka')
else:
	print('Chris')


a1 = input()
a = 0
m = 0
c = 0
while a < int(a1):
	a += 1
	a2 = input().split(' ')
	if int(a2[0]) > int(a2[1]):
		m += 1
	elif int(a2[0]) < int(a2[1]):
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
score = [0, 0]
for i in range(n):
	(m, c) = map(int, input().split())
	if m < c:
		score[1] += 1
	elif c < m:
		score[0] += 1
res = 'Friendship is magic!^^'
if score[0] < score[1]:
	res = 'Chris'
elif score[0] > score[1]:
	res = 'Mishka'
print(res)


d = {'Mishka': 0, 'Chris': 0}
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		d['Mishka'] += 1
	elif m < c:
		d['Chris'] += 1
max_val = max(d.values())
ans = {key: value for (key, value) in d.items() if value == max_val}
print(*(ans.keys() if len(ans.keys()) == 1 else ['Friendship is magic!^^']))


mishka = 0
cris = 0
for i in range(int(input())):
	(x, y) = input().split()
	if int(x) > int(y):
		mishka += 1
	elif int(y) > int(x):
		cris += 1
	elif int(y) == int(x):
		pass
if mishka > cris:
	print('Mishka', end='')
elif cris > mishka:
	print('Chris', end='')
elif mishka == cris:
	print('Friendship is magic!^^', end='')


from math import ceil

def main():
	n = int(input())
	ans = 0
	for i in range(n):
		(a, b) = map(int, input().split())
		if a > b:
			ans += 1
		elif a < b:
			ans -= 1
		else:
			pass
	if ans > 0:
		print('Mishka')
	elif ans < 0:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


t = int(input())
mka = 0
krs = 0
for i in range(t):
	fight = input().split(' ')
	m = int(fight[0])
	k = int(fight[1])
	if m > k:
		mka += 1
	if k > m:
		krs += 1
if mka > krs:
	print('Mishka')
if krs > mka:
	print('Chris')
if krs == mka:
	print('Friendship is magic!^^')


n = int(input())
s = 0
q = 0
while n != 0:
	(a, b) = list(map(int, input().split()))
	if a > b:
		s = s + 1
	elif b > a:
		q = q + 1
	n = n - 1
if s == q:
	print('Friendship is magic!^^')
elif s < q:
	print('Chris')
else:
	print('Mishka')


n = int(input())
win = 0
while n:
	n = n - 1
	rou = [int(x) for x in input().split()]
	if rou[0] > rou[1]:
		win = win + 1
	elif rou[0] < rou[1]:
		win = win - 1
if win > 0:
	print('Mishka')
elif win == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
m = 0
c = 0
for _ in range(n):
	inp1 = str(input())
	inp = inp1.split()
	a = int(inp[0])
	b = int(inp[1])
	if a > b:
		m += 1
	elif a < b:
		c += 1
	else:
		continue
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


count = int(input())
mishka = 0
chris = 0
while count != 0:
	final = input()
	final = final.split(' ')
	gg = int(final[0])
	gz = int(final[1])
	if gg > gz:
		mishka += 1
	elif gz > gg:
		chris += 1
	count -= 1
if mishka == chris:
	print('Friendship is magic!^^')
elif mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')


def winer(wins, player):
	wins[player] = wins[player] + 1
	return wins

def display(wins):
	win_m = wins['M']
	win_c = wins['C']
	if win_m == win_c:
		return 'Friendship is magic!^^'
	elif win_m < win_c:
		return 'Chris'
	elif win_c < win_m:
		return 'Mishka'

def account(rounds):
	wins = dict()
	wins['M'] = 0
	wins['C'] = 0
	for (m, c) in rounds:
		if c < m:
			wins = winer(wins, 'M')
		elif m < c:
			wins = winer(wins, 'C')
	return display(wins)

def main():
	n = int(input())
	rounds = list()
	for _ in range(n):
		rounds.append(list(map(int, input().split())))
	print(account(rounds))
main()


n = int(input())
rm = 0
rc = 0
for t in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		rm = rm + 1
	elif c > m:
		rc = rc + 1
if rm == rc:
	print('Friendship is magic!^^')
elif rm > rc:
	print('Mishka')
else:
	print('Chris')


n = int(input())
v = 0
for i in range(n):
	(a, m) = map(int, input().split())
	if a > m:
		v += 1
	elif m > a:
		v -= 1
if v > 0:
	print('Mishka')
elif v == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
mishka = 0
kris = 0
for i in range(n):
	(m, k) = map(int, input().split())
	if m > k:
		mishka += 1
	elif m < k:
		kris += 1
	else:
		pass
if mishka > kris:
	print('Mishka')
elif mishka < kris:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
p = 0
q = 0
while t:
	(m, c) = list(map(int, input().split()))
	if m > c:
		p = p + 1
	elif c > m:
		q = q + 1
	t = t - 1
if p > q:
	print('Mishka')
elif p < q:
	print('Chris')
elif p == q:
	print('Friendship is magic!^^')


n = int(input())
M = 0
Ch = 0
Fr = 0
for i in range(1, n + 1):
	(m_n, c_n) = map(int, input().split())
	if m_n > c_n:
		M += 1
	elif m_n < c_n:
		Ch += 1
	elif m_n == c_n:
		Fr += 1
if M > Ch:
	print('Mishka')
elif Ch > M:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
game = []
for i in range(n):
	(x, y) = map(int, input().split())
	game.append((x, y))
mishka = sum((x - y > 0 for (x, y) in game))
chris = sum((x - y < 0 for (x, y) in game))
if mishka == chris:
	print('Friendship is magic!^^')
else:
	print(['Chris', 'Mishka'][mishka > chris])


n = int(input())
cnt1 = 0
cnt2 = 0
for i in range(n):
	a = list(map(int, input().split()))
	if a[0] > a[1]:
		cnt1 += 1
	elif a[0] < a[1]:
		cnt2 += 1
if cnt1 > cnt2:
	print('Mishka')
elif cnt1 < cnt2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
Mich = 0
Kris = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		Mich += 1
	elif a == b:
		Mich += 1
		Kris += 1
	else:
		Kris += 1
if Mich > Kris:
	print('Mishka')
elif Mich == Kris:
	print('Friendship is magic!^^')
else:
	print('Chris')


def find(li):
	m = 0
	c = 0
	d = 0
	for i in range(0, len(li), 2):
		if li[i] > li[i + 1]:
			m = m + 1
		elif li[i] < li[i + 1]:
			c = c + 1
		else:
			d = d + 1
	if m > c:
		print('Mishka')
	elif c > m:
		print('Chris')
	else:
		print('Friendship is magic!^^')
n = int(input())
li = []
for i in range(0, n):
	(a, b) = list(map(int, input().split()))
	li.append(a)
	li.append(b)
find(li)


n = int(input())
(c, d, e) = (0, 0, 0)
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		c = c + 1
	elif a < b:
		d = d + 1
	elif a == b:
		e = e + 1
if c > d:
	print('Mishka')
elif d > c:
	print('Chris')
elif c == d:
	print('Friendship is magic!^^')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, queue, copy
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def I():
	return int(sys.stdin.readline())

def LS():
	return sys.stdin.readline().split()

def S():
	return input()

def main():
	n = I()
	a = b = 0
	for _ in range(n):
		(x, y) = LI()
		if x < y:
			b += 1
		elif x > y:
			a += 1
	if a > b:
		return 'Mishka'
	elif a < b:
		return 'Chris'
	return 'Friendship is magic!^^'
print(main())


count_m = 0
count_c = 0
for _ in range(int(input())):
	(m, c) = map(int, input().strip().split())
	if m > c:
		count_m += 1
	elif c > m:
		count_c += 1
if count_m > count_c:
	print('Mishka')
elif count_c > count_m:
	print('Chris')
else:
	print('Friendship is magic!^^')


import math

def main():
	n = int(input())
	(cnt1, cnt2) = (0, 0)
	for i in range(n):
		(x, y) = map(int, input().split())
		if x > y:
			cnt1 += 1
		if x < y:
			cnt2 += 1
	if cnt1 > cnt2:
		print('Mishka')
	elif cnt1 < cnt2:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


n = int(input())
(count_m, count_k) = (0, 0)
for i in range(n):
	(m, k) = tuple(map(int, input().split()))
	if m > k:
		count_m += 1
	elif k > m:
		count_k += 1
if count_m == count_k:
	print('Friendship is magic!^^')
elif count_m > count_k:
	print('Mishka')
else:
	print('Chris')


a = int(input())
b = []
d = []
for x in range(a):
	b.append(list(map(int, input().split())))
for i in range(a):
	if b[i][0] > b[i][1]:
		d.append('Mishka')
	elif b[i][0] < b[i][1]:
		d.append('Chris')
	else:
		d.append('Friendship is magic!^^')
m = d.count('Mishka')
n = d.count('Chris')
o = d.count('Friendship is magic!^^')
if m == n:
	print('Friendship is magic!^^')
elif m == n == o:
	print('Friendship is magic!^^')
elif m - o > n - o:
	print('Mishka')
elif n - o > m - o:
	print('Chris')


def winner(arr):
	m = 0
	c = 0
	for i in arr:
		if i[0] > i[1]:
			m += 1
		elif i[0] < i[1]:
			c += 1
	if m == c:
		return 'Friendship is magic!^^'
	if m > c:
		return 'Mishka'
	return 'Chris'
n = int(input())
a = []
for i in range(n):
	x = list(map(int, input().rstrip().split()))
	a.append(x)
print(winner(a))


def check(a, b):
	mwin = 'Mishka'
	cwin = 'Chris'
	none = 'Friendship is magic!^^'
	mw = cw = 0
	for i in range(int(a)):
		(m, c) = [int(x) for x in b[i].split(' ')]
		if m > c:
			mw += 1
		elif c > m:
			cw += 1
	res = none
	if mw > cw:
		res = mwin
	elif cw > mw:
		res = cwin
	return res

def main():
	a = int(input())
	b = []
	for i in range(a):
		b.append(input())
	print(check(a, b))
main()


M = 0
C = 0
for x in range(int(input())):
	a = input().split()
	if int(a[0]) > int(a[1]):
		M += 1
	elif int(a[0]) < int(a[1]):
		C += 1
if M > C:
	print('Mishka')
elif M < C:
	print('Chris')
else:
	print('Friendship is magic!^^')


chrisCount = 0
mikshaCount = 0
for i in range(int(input())):
	(miksha, chris) = list(map(int, input().split()))
	if miksha > chris:
		mikshaCount = mikshaCount + 1
	elif miksha < chris:
		chrisCount = chrisCount + 1
	else:
		chrisCount = chrisCount + 1
		mikshaCount = mikshaCount + 1
if mikshaCount > chrisCount:
	print('Mishka')
elif mikshaCount < chrisCount:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	n = int(input())
	t_m = 0
	t_c = 0
	for i in range(n):
		(m, c) = list(map(int, input().rstrip().split()))
		if m > c:
			t_m += 1
		elif c > m:
			t_c += 1
	if t_m > t_c:
		print('Mishka')
	elif t_c > t_m:
		print('Chris')
	else:
		print('Friendship is magic!^^')
main()


t = int(input())
c = 0
s = 0
j = 0
for i in range(t):
	l = list(map(int, input().split()))
	if l[0] > l[1]:
		c = c + 1
	if l[0] < l[1]:
		s = s + 1
	if l[0] == l[1]:
		j = j + 1
if c > s:
	print('Mishka')
if s > c:
	print('Chris')
if s == c:
	print('Friendship is magic!^^')


T = int(input())
M = C = 0
for i in range(T):
	[m, c] = [int(n) for n in input().split()]
	if m > c:
		M += 1
	elif c > m:
		C += 1
print('Mishka' if M > C else 'Chris' if C > M else 'Friendship is magic!^^')


n = int(input())
cnt_mishka = 0
cnt_chris = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		cnt_mishka += 1
	elif a < b:
		cnt_chris += 1
if cnt_mishka > cnt_chris:
	print('Mishka')
elif cnt_chris > cnt_mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


import functools
cnt = int(input())
rounds = [list(map(int, input().split())) for i in range(cnt)]
res = functools.reduce(lambda p, c: p + 1 if c[0] > c[1] else p if c[0] == c[1] else p - 1, rounds, 0)
if res > 0:
	print('Mishka')
elif res == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


liczbaGier = int(input())
punktyA = 0
punktyB = 0
remisy = 0
for x in range(liczbaGier):
	napis = input().split()
	a = int(napis[0])
	b = int(napis[1])
	if a > b:
		punktyA += 1
	elif a < b:
		punktyB += 1
if punktyA > punktyB:
	print('Mishka')
elif punktyB > punktyA:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import exit as sys_ret
amount = int(input())
(mishka, chris) = (0, 0)
while amount:
	amount -= 1
	(first, second) = map(int, input().split())
	if first > second:
		mishka += 1
	elif first < second:
		chris += 1
if mishka == chris:
	print('Friendship is magic!^^')
elif mishka > chris:
	print('Mishka')
else:
	print('Chris')


n = int(input())
dem = 0
dem1 = 0
for i in range(0, n):
	(a, b) = map(int, input().split())
	if a > b:
		dem = dem + 1
	if a < b:
		dem1 = dem1 + 1
if dem > dem1:
	print('Mishka')
elif dem < dem1:
	print('Chris')
else:
	print('Friendship is magic!^^')


(n, first_pl, second_pl) = (int(input()), 0, 0)
games = [input().split() for i in range(n)]
for i in range(n):
	if int(games[i][0]) > int(games[i][1]):
		first_pl += 1
	elif int(games[i][0]) < int(games[i][1]):
		second_pl += 1
	else:
		pass
if first_pl > second_pl:
	print('Mishka')
elif first_pl < second_pl:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mc = 0
sc = 0
for i in range(n):
	(m, s) = input().split()
	m = int(m)
	s = int(s)
	if m > s:
		mc += 1
	elif s > m:
		sc += 1
if mc > sc:
	print('Mishka')
elif mc < sc:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
e = 0
k = 0
for i in range(a):
	(l, m) = map(int, input().split())
	if l > m:
		e += 1
	elif m > l:
		k += 1
if e > k:
	print('Mishka')
elif k > e:
	print('Chris')
else:
	print('Friendship is magic!^^')


r = int(input())
m_count = 0
c_count = 0
for i in range(r):
	(m, c) = map(int, input().split())
	if m > c:
		m_count += 1
	elif m < c:
		c_count += 1
	elif m == c:
		pass
if m_count > c_count:
	print('Mishka')
elif c_count > m_count:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
x = list()
y = list()
for i in range(n):
	(a, b) = map(int, input().split())
	x.append(a)
	y.append(b)
p = 0
q = 0
for (a, b) in zip(x, y):
	if a > b:
		p = p + 1
	if b > a:
		q = q + 1
if p > q:
	print('Mishka')
elif p == q:
	print('Friendship is magic!^^')
else:
	print('Chris')


def solve(inp):
	m = c = 0
	for i in inp:
		if i[0] > i[1]:
			m += 1
			continue
		if i[0] < i[1]:
			c += 1
			continue
	if m > c:
		return 'Mishka'
	if m < c:
		return 'Chris'
	return 'Friendship is magic!^^'
n = int(input())
inp = []
for i in range(n):
	inp.append(tuple([int(i) for i in input().split()]))
print(solve(inp))


n = int(input())
i = 0
k = 0
g = 0
while i < n:
	b = input().split(' ')
	c = int(b[0])
	d = int(b[1])
	if c > d:
		k = k + 1
	if c < d:
		g = g + 1
	i = i + 1
if k > g:
	print('Mishka')
if k < g:
	print('Chris')
if k == g:
	print('Friendship is magic!^^')


n = int(input())
(count1, count2, count3) = (0, 0, 0)
while n:
	(m, c) = map(int, input().split())
	if m > c:
		count1 += 1
	elif m < c:
		count2 += 1
	else:
		count3 += 1
	n = n - 1
if count1 > count2:
	print('Mishka')
elif count2 > count1:
	print('Chris')
elif count1 == count2 or (count3 > count1 and count3 > count2):
	print('Friendship is magic!^^')


n = int(input())
manishka = 0
chris = 0
i = 0
while i < n:
	(m, c) = input().split()
	m = int(m)
	c = int(c)
	if m > c:
		manishka += 1
	elif c > m:
		chris += 1
	elif c == m:
		manishka += 1
		chris += 1
	i += 1
if manishka > chris:
	print('Mishka')
elif manishka == chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


a = int(input())
scorem = 0
scorec = 0
for i in range(a):
	(m, c) = input().split()
	if m > c:
		scorem += 1
	if m < c:
		scorec += 1
if scorem > scorec:
	print('Mishka')
if scorem < scorec:
	print('Chris')
if scorem == scorec:
	print('Friendship is magic!^^')


n = int(input())
count = 0
othercount = 0
for i in range(n):
	(m, c) = input().split()
	m = int(m)
	c = int(c)
	if m > c:
		count += 1
	if c > m:
		othercount += 1
if count > othercount:
	print('Mishka')
elif count < othercount:
	print('Chris')
elif count == othercount:
	print('Friendship is magic!^^')


no_rounds = int(input())
mishka_wins = 0
draws = 0
for _ in range(no_rounds):
	dice_roll = list(map(int, input().split()))
	if dice_roll[0] > dice_roll[1]:
		mishka_wins += 1
	elif dice_roll[0] == dice_roll[1]:
		draws += 1
if mishka_wins > (no_rounds - draws) // 2:
	print('Mishka')
elif mishka_wins == (no_rounds - draws) / 2:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
m_count = 0
k_count = 0
m_list = []
k_list = []
for i in range(n):
	(m, k) = map(int, input().split())
	m_list.append(m)
	k_list.append(k)
for i in range(len(k_list)):
	if m_list[i] > k_list[i]:
		m_count += 1
	if m_list[i] < k_list[i]:
		k_count += 1
if k_count > m_count:
	print('Chris')
elif k_count < m_count:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
m = c = 0
while n:
	(m_s, c_s) = map(int, input().split())
	if m_s > c_s:
		m += 1
	elif c_s > m_s:
		c += 1
	n -= 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
else:
	print('Chris')


wn = 'Friendship is magic!^^,Mishka,Chris'.split(',')

def tn(x, z):
	t = x - z
	return 0 if t == 0 else t // abs(t)

def ww(v):
	t = 0
	for (x, z) in v:
		t += tn(x, z)
	return wn[tn(t, 0)]
n = int(input())
v = []
for _ in range(n):
	v.append([int(x) for x in input().split()])
print(ww(v))


mishka_wins_count = 0
chris_wins_count = 0
for i in range(int(input())):
	rolled_dice = input()
	if int(rolled_dice[0]) > int(rolled_dice[2]):
		mishka_wins_count += 1
	elif int(rolled_dice[0]) < int(rolled_dice[2]):
		chris_wins_count += 1
if mishka_wins_count > chris_wins_count:
	print('Mishka')
elif mishka_wins_count < chris_wins_count:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mish = 0
chris = 0
for _ in range(n):
	l = list(map(int, input().strip().split()))
	if l[0] > l[1]:
		mish = mish + 1
	elif l[1] > l[0]:
		chris = chris + 1
if mish == chris:
	print('Friendship is magic!^^')
elif mish > chris:
	print('Mishka')
else:
	print('Chris')


n = int(input())
summ = 0
sumc = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		summ += 1
	elif a < b:
		sumc += 1
	else:
		summ += 0
if summ > sumc:
	print('Mishka')
elif sumc > summ:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
for _ in range(n):
	(k, l) = map(int, input().split())
	if k == l:
		continue
	elif k > l:
		m += 1
	elif k < l:
		c += 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
elif c > m:
	print('Chris')


numGames = int(input())
wins = 0
for _ in range(numGames):
	(a, b) = input().split(' ')
	if int(a) < int(b):
		wins -= 1
	elif int(a) > int(b):
		wins += 1
if wins > 0:
	print('Mishka')
elif wins == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


t = int(input())
c1 = 0
c2 = 0
for i in range(t):
	(x, y) = map(int, input().split())
	if x > y:
		c1 += 1
	elif x < y:
		c2 += 1
	else:
		pass
if c1 > c2:
	print('Mishka')
elif c1 < c2:
	print('Chris')
elif c1 == c2:
	print('Friendship is magic!^^')


n = int(input())
c = []
d = []
for k in range(0, n):
	(a, b) = list(map(int, input().split()))
	if a > b:
		c.append(a)
	elif b > a:
		d.append(b)
	g = len(c)
	h = len(d)
if g > h:
	print('Mishka')
elif g == h:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
cont1 = 0
cont2 = 0
for i in range(n):
	(mi, ch) = map(int, input().split())
	if mi > ch:
		cont1 += 1
	if mi < ch:
		cont2 += 1
if cont1 > cont2:
	print('Mishka')
elif cont1 < cont2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
i = 0
_count_ch = 0
_count_mi = 0
for i in range(n):
	(Mi, Ch) = map(int, input().split())
	if Mi > Ch:
		_count_mi += 1
	elif Mi < Ch:
		_count_ch += 1
	elif Mi == Ch:
		pass
if _count_ch == _count_mi:
	print('Friendship is magic!^^')
elif _count_mi > _count_ch:
	print('Mishka')
else:
	print('Chris')


n = int(input())
countM = 0
countC = 0
for i in range(n):
	(m, c) = list(map(int, input().split()))
	if m >= c:
		countM = countM + 1
	if m <= c:
		countC = countC + 1
if countM > countC:
	print('Mishka')
if countM < countC:
	print('Chris')
if countM == countC:
	print('Friendship is magic!^^')


k = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	k += m > c
	k -= m < c
print('Mishka' if k > 0 else ['Friendship is magic!^^', 'Chris'][k < 0])


n = int(input())
mishka_wins = 0
chris_wins = 0
for i in range(n):
	entrada = str(input())
	entrada = entrada.split()
	mishka = int(entrada[0])
	chris = int(entrada[1])
	if mishka > chris:
		mishka_wins += 1
	elif mishka < chris:
		chris_wins += 1
ans = 'Friendship is magic!^^'
if mishka_wins > chris_wins:
	ans = 'Mishka'
elif mishka_wins < chris_wins:
	ans = 'Chris'
print(ans)


def main():
	n = int(input())
	chris = 'Chris'
	mishka = 'Mishka'
	freq = {chris: 0, mishka: 0}
	for i in range(n):
		(m, c) = [int(v) for v in input().split()]
		if m > c:
			freq[mishka] += 1
		elif m < c:
			freq[chris] += 1
	if freq[mishka] > freq[chris]:
		print(mishka)
	elif freq[chris] > freq[mishka]:
		print(chris)
	else:
		print('Friendship is magic!^^')
main()


import sys

def solve():
	n = int(input())
	m_win = 0
	c_win = 0
	for i in range(n):
		(m, c) = [int(x) for x in input().split(' ')]
		if m > c:
			m_win += 1
		elif c > m:
			c_win += 1
	if m_win > c_win:
		return 'Mishka'
	elif c_win > m_win:
		return 'Chris'
	else:
		return 'Friendship is magic!^^'
ans = solve()
print(ans)


from sys import stdin
max_val = int(10000000000000.0)
min_val = int(-10000000000000.0)

def read_int():
	return int(stdin.readline())

def read_ints():
	return [int(x) for x in stdin.readline().split()]

def read_str():
	return input()

def read_strs():
	return [x for x in stdin.readline().split()]
nb_round = read_int()
result = 0
for _ in range(nb_round):
	(a, b) = read_ints()
	result += 1 if a > b else -1 if a < b else 0
print('Mishka' if result > 0 else ['Friendship is magic!^^', 'Chris'][result < 0])


c1 = 0
c2 = 0
for _ in range(int(input())):
	(n, k) = map(int, input().split())
	if n > k:
		c1 += 1
	elif n < k:
		c2 += 1
if c1 == c2:
	print('Friendship is magic!^^')
elif c1 > c2:
	print('Mishka')
else:
	print('Chris')


n = int(input())
Mis = 0
Chr = 0
for k in range(n):
	(m, c) = map(int, input().split())
	if m > c:
		Mis += 1
	if m < c:
		Chr += 1
if Mis > Chr:
	print('Mishka')
if Mis < Chr:
	print('Chris')
if Mis == Chr:
	print('Friendship is magic!^^')


a = int(input())
b = 0
c = 0
for item in range(a):
	(m, n) = input().split()
	m = int(m)
	n = int(n)
	if m > n:
		b += 1
	elif m < n:
		c += 1
	elif m == n:
		b = b
		c = c
if b > c:
	print('Mishka')
elif b < c:
	print('Chris')
elif b == c:
	print('Friendship is magic!^^')


a = int(input())
xx = 0
yy = 0
for i in range(a):
	(x, y) = map(int, input().split())
	if x > y:
		xx += 1
	elif y > x:
		yy += 1
if xx > yy:
	print('Mishka')
elif xx < yy:
	print('Chris')
else:
	print('Friendship is magic!^^')


N = int(input(''))
Resultado = 0
for K in range(N):
	Datos = input('')
	Datos = Datos.split()
	M = int(Datos[0])
	C = int(Datos[1])
	if M > C:
		Resultado = Resultado + 1
	elif C > M:
		Resultado = Resultado - 1
if Resultado > 0:
	print('Mishka')
elif Resultado < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(counter_m, counter_c) = (0, 0)
for i in range(n):
	(m, c) = [int(elem) for elem in input().split()]
	if m > c:
		counter_m += 1
	elif c > m:
		counter_c += 1
if counter_m > counter_c:
	print('Mishka')
elif counter_m < counter_c:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
counts = 0
for i in range(n):
	(a, b) = map(int, input().split())
	if a != b:
		counts += 1 if int(a > b) else -1
if counts == 0:
	result = 'Friendship is magic!^^'
elif counts > 0:
	result = 'Mishka'
else:
	result = 'Chris'
print(result)


no_of_rounds = int(input())
score_m = 0
score_c = 0
for i in range(no_of_rounds):
	dice = input()
	dice_list = dice.split(' ')
	if dice_list[0] > dice_list[1]:
		score_m += 1
	elif dice_list[0] < dice_list[1]:
		score_c += 1
	else:
		pass
if score_m > score_c:
	print('Mishka')
elif score_c == score_m:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
l = []
for i in range(n):
	l.append(list(map(int, input().split())))
(c, d) = (0, 0)
for i in range(n):
	if l[i][0] > l[i][1]:
		c = c + 1
	elif l[i][0] < l[i][1]:
		d = d + 1
if c > d:
	print('Mishka')
elif c < d:
	print('Chris')
elif c == d:
	print('Friendship is magic!^^')


n = int(input())
m = c = 0
ans = ''
for i in range(n):
	(m1, c1) = input().split()
	m += m1 > c1
	c += c1 > m1
if m > c:
	ans = 'Mishka'
elif c > m:
	ans = 'Chris'
else:
	ans = 'Friendship is magic!^^'
print(ans)


rounds = int(input())
A = ([], [])
a = 0
b = 0
for i in range(rounds):
	A = [int(i) for i in input().split()]
	if int(A[0]) > int(A[1]):
		a += 1
	elif int(A[0]) < int(A[1]):
		b += 1
if a > b:
	print('Mishka')
elif a == b:
	print('Friendship is magic!^^')
elif a < b:
	print('Chris')


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


n = int(input())
m = 0
c = 0
for i in range(n):
	cmd = input()
	lst = list(map(int, cmd.split()))
	if lst[0] > lst[1]:
		m += 1
	elif lst[1] > lst[0]:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
elif c == m:
	print('Friendship is magic!^^')


n = int(input())
ans = [0] * 2
for i in range(n):
	(x, y) = map(int, input().split(' '))
	if x > y:
		ans[0] += 1
	elif x < y:
		ans[1] += 1
if ans[0] > ans[1]:
	print('Mishka')
elif ans[0] < ans[1]:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
mishka_count = 0
chris_count = 0
for i in range(n):
	(x, y) = [int(i) for i in input().split()]
	if x > y:
		mishka_count += 1
	elif x == y:
		pass
	else:
		chris_count += 1
if mishka_count == chris_count:
	print('Friendship is magic!^^')
elif mishka_count > chris_count:
	print('Mishka')
else:
	print('Chris')


n = int(input())
l = []
for i in range(n):
	(m, n) = map(int, input().split())
	if m > n:
		l.append('a')
	elif m < n:
		l.append('b')
strl = ''.join([str(x) for x in l])
k1 = strl.count('a')
k2 = strl.count('b')
if k1 > k2:
	print('Mishka')
elif k1 < k2:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
liste = []
M = 0
C = 0
for i in range(n):
	z = [int(i) for i in input().split()]
	liste.append(z)
for i in liste:
	if i[0] > i[1]:
		M += 1
	elif i[0] < i[1]:
		C += 1
if M > C:
	print('Mishka')
elif C > M:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
c = 0
d = 0
for i in range(n):
	(s, t) = map(int, input().split())
	if s < t:
		c += 1
	elif s > t:
		d += 1
if c < d:
	print('Mishka')
elif c > d:
	print('Chris')
elif c == d:
	print('Friendship is magic!^^')


n = int(input())
i = A = B = 0
while i < n:
	(a, b) = map(int, input().split())
	if a > b:
		A += 1
	elif b > a:
		B += 1
	else:
		A += 1
		B += 1
	i += 1
if A > B:
	print('Mishka')
elif B > A:
	print('Chris')
else:
	print('Friendship is magic!^^')


loops = int(input())
m = 0
c = 0
for i in range(loops):
	(m_r, c_r) = map(int, input().split())
	if m_r > c_r:
		m += 1
	elif c_r > m_r:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(m, k) = [0] * 2
for i in range(n):
	(t1, t2) = [int(x) for x in input().split()]
	if t1 < t2:
		k += 1
	elif t1 > t2:
		m += 1
if m > k:
	print('Mishka')
elif m < k:
	print('Chris')
else:
	print('Friendship is magic!^^')


count = 0
temp = 0
for _ in range(int(input())):
	(x, y) = map(int, input().split())
	if x > y:
		count += 1
	elif x < y:
		temp += 1
if count > temp:
	print('Mishka')
elif count == temp:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
l = []
for _ in range(n):
	tt = list(map(int, input().split()))
	l.append(tt)
m = c = 0
for i in range(n):
	if l[i][0] < l[i][1]:
		m += 1
	elif l[i][0] > l[i][1]:
		c += 1
if m < c:
	print('Mishka')
elif m > c:
	print('Chris')
else:
	print('Friendship is magic!^^')


M = 0
K = 0
for i in [0] * int(input()):
	(q, w) = map(int, input().split())
	if q > w:
		M = M + 1
	elif q < w:
		K = K + 1
if M > K:
	print('Mishka')
elif M < K:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
(mW, cW) = (0, 0)
for i in range(rounds):
	(m, c) = map(int, input().split())
	if m > c:
		mW += 1
	elif m < c:
		cW += 1
if cW == mW:
	print('Friendship is magic!^^')
else:
	print('Chris' if cW > mW else 'Mishka')


n = int(input())
www = []
mishka = []
kris = []
for i in range(1, n + 1):
	r = (x, y) = [int(x) for x in input().split()]
	www.append(r)
for j in range(len(www)):
	if www[j][0] > www[j][1]:
		mishka.append(1)
	elif www[j][0] < www[j][1]:
		kris.append(1)
	else:
		None
if sum(mishka) > sum(kris):
	print('Mishka')
elif sum(mishka) < sum(kris):
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
aaa = []
bbb = []
for i in range(a):
	(aa, bb) = map(int, input().split())
	if aa > bb:
		aaa.append('1')
	elif bb > aa:
		bbb.append('1')
if len(aaa) > len(bbb):
	print('Mishka')
elif len(bbb) > len(aaa):
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
y = []
z = []
z1 = []
d = 0
d1 = 0
for i in range(n):
	x = list(map(int, input().split()))
	z.append(x[0])
	z1.append(x[1])
for i in range(len(z)):
	if z[i] > z1[i]:
		d = d + 1
	elif z[i] < z1[i]:
		d1 = d1 + 1
if d > d1:
	print('Mishka')
elif d < d1:
	print('Chris')
else:
	print('Friendship is magic!^^')


A = B = 0
for i in range(int(input())):
	(scoreA, scoreB) = map(int, input().split())
	if scoreA > scoreB:
		A += 1
	elif scoreA < scoreB:
		B += 1
if A > B:
	print('Mishka')
elif A < B:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	cases = int(input())
	mishkaWins = 0
	chrisWins = 0
	for i in range(cases):
		(x, y) = input().split()
		(x, y) = (int(x), int(y))
		if x > y:
			mishkaWins += 1
		elif y > x:
			chrisWins += 1
	if mishkaWins > chrisWins:
		print('Mishka')
	elif chrisWins > mishkaWins:
		print('Chris')
	else:
		print('Friendship is magic!^^')
	return ()
main()


def main():
	t = int(input())
	cnt = 0
	for _ in range(t):
		(a, b) = map(int, input().split())
		if a > b:
			cnt += 1
		elif a < b:
			cnt -= 1
	if cnt > 0:
		print('Mishka')
	elif cnt == 0:
		print('Friendship is magic!^^')
	else:
		print('Chris')
main()


repeatNumber = int(input())
ans = 0
for i in range(repeatNumber):
	input1 = list(map(int, input().split()))
	if input1[0] > input1[1]:
		ans += 1
	elif input1[0] < input1[1]:
		ans -= 1
if ans > 0:
	print('Mishka')
elif ans == 0:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
m = n
b = []
while n > 0:
	a = input().split()
	b.extend(a)
	n = n - 1
x = 0
y = 1
q = 0
w = 0
while m > 0:
	if b[x] > b[y]:
		q = q + 1
	elif b[y] > b[x]:
		w = w + 1
	x = x + 2
	y = y + 2
	m = m - 1
if q > w:
	print('Mishka')
elif w > q:
	print('Chris')
else:
	print('Friendship is magic!^^')


testcase = int(input())
asum = 0
bsum = 0
for i in range(testcase):
	(a, b) = list(map(int, input().split()))
	if a > b:
		asum += 1
	elif b > a:
		bsum += 1
if asum > bsum:
	print('Mishka')
elif bsum > asum:
	print('Chris')
else:
	print('Friendship is magic!^^')


class dice:

	def __init__(self, Mi, Ch):
		self.Mi = Mi
		self.Ch = Ch

	def play(self):
		if self.Mi > self.Ch:
			return 'm'
		elif self.Mi < self.Ch:
			return 'c'
n = int(input())
arr = []
for i in range(n):
	(Mi, Ch) = map(int, input().split(' '))
	temp = dice(Mi, Ch)
	arr.append(temp)
Mic = 0
Chc = 0
for j in arr:
	if j.play() == 'm':
		Mic += 1
	elif j.play() == 'c':
		Chc += 1
if Mic > Chc:
	print('Mishka')
elif Mic < Chc:
	print('Chris')
else:
	print('Friendship is magic!^^')


round = int(input())
ChrisNum = 0
MishkaNum = 0
for time in range(round):
	Gameround = input().split(' ')
	if int(Gameround[0]) < int(Gameround[1]):
		ChrisNum += 1
	elif int(Gameround[0]) > int(Gameround[1]):
		MishkaNum += 1
	else:
		pass
if MishkaNum > ChrisNum:
	print('Mishka')
elif MishkaNum < ChrisNum:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
l = []
l2 = []
for i in range(n):
	v = input()
	s = v.split(' ')
	l.append(s)
for i in range(len(l)):
	l[i][1] = int(l[i][1])
	l[i][0] = int(l[i][0])
for i in l:
	if i[0] > i[1]:
		l2.append(1)
	elif i[0] < i[1]:
		l2.append(-1)
	elif i[0] == i[1]:
		l2.append(0)
r = 0
for i in l2:
	r = r + i
if r > 0:
	print('Mishka')
elif r < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


s = 0
t = int(input())
for i in range(t):
	(a, b) = map(int, input().split())
	s += (a > b) - (a < b)
if s > 0:
	print('Mishka')
elif s < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
out = 0
for i in range(n):
	foo = list(map(int, input().split(' ')))
	if foo[0] > foo[1]:
		out += 1
	elif foo[0] < foo[1]:
		out -= 1
	else:
		pass
if out > 0:
	print('Mishka')
elif out < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
jogos = []
masha = 0
cris = 0
while True:
	try:
		for x in input().split():
			jogos.append(int(x))
	except EOFError:
		break
	else:
		if jogos[0] > jogos[1]:
			masha += 1
		elif jogos[1] > jogos[0]:
			cris += 1
		jogos.clear()
if masha > cris:
	print('Mishka')
elif cris > masha:
	print('Chris')
else:
	print('Friendship is magic!^^')


m_win = 'Mishka'
c_win = 'Chris'
draw = 'Friendship is magic!^^'
n = int(input())
m = 0
c = 0
for i in range(n):
	(_m, _c) = [int(x) for x in input().split(' ')]
	if _m > _c:
		m += 1
	elif _c > _m:
		c += 1
if m == c:
	print(draw)
elif m > c:
	print(m_win)
else:
	print(c_win)


n = int(input())
mishka = 0
criss = 0
for i in range(n):
	game = list(map(int, input().split()))
	if game[0] > game[1]:
		mishka += 1
	elif game[0] < game[1]:
		criss += 1
if mishka > criss:
	print('Mishka')
elif criss > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


games = int(input())
M = 0
C = 0
for i in range(games):
	(a, b) = list(map(int, input().split()))
	if a > b:
		M += 1
	elif b > a:
		C += 1
if M > C:
	print('Mishka')
elif C > M:
	print('Chris')
else:
	print('Friendship is magic!^^')


from sys import stdin
i = [[int(y) for y in x.rstrip().split()] for x in stdin.readlines()]
n = i[0]
m = sum((1 if x[0] > x[1] else -int(x[1] > x[0]) for x in i[1:]))
if m > 0:
	print('Mishka')
elif m < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


w = int(input())
a = []
(m, c) = (0, 0)
for i in range(0, w):
	p = input().split()
	a.append(p)
for i in range(0, w):
	r = a[i]
	if int(r[0]) > int(r[1]):
		m = m + 1
	elif int(r[0]) < int(r[1]):
		c = c + 1
if m == c:
	print('Friendship is magic!^^')
elif m > c:
	print('Mishka')
elif m < c:
	print('Chris')


n = int(input())
(mis, cris) = (0, 0)
for i in range(n):
	line = input()
	(a, b) = [int(h) for h in line.split()]
	if a > b:
		mis += 1
	if b > a:
		cris += 1
if mis > cris:
	print('Mishka')
elif cris > mis:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
a = list()
result = []
for i in range(n):
	a.append(tuple(input().split()))
for i in a:
	if i.count(max(i)) < 2:
		result.append(i.index(max(i)))
if result.count(0) > result.count(1):
	print('Mishka')
elif result.count(0) == result.count(1):
	print('Friendship is magic!^^')
else:
	print('Chris')


no_of_rounds = int(input())
winner = []
for i in range(no_of_rounds):
	Round = input().split(' ')
	if int(Round[0]) > int(Round[1]):
		winner.append('M')
	if int(Round[0]) < int(Round[1]):
		winner.append('C')
(Mishika, Chris) = (winner.count('M'), winner.count('C'))
if Mishika > Chris:
	print('Mishka')
elif Mishika < Chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


import sys, math
n = int(input())
m = 0
c = 0
for i in range(n):
	(p, q) = map(int, input().split())
	if p > q:
		m += 1
	if p < q:
		c += 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


import math
from collections import *
import sys
from functools import reduce

def get_ints():
	return map(int, input().strip().split())

def get_list():
	return list(get_ints())

def get_string():
	return list(input().strip().split())

def printxsp(*args):
	return print(*args, end='')

def printsp(*args):
	return print(*args, end=' ')
UGLYMOD = int(1000000000.0) + 7
SEXYMOD = 998244353
MAXN = int(100000.0)
m = c = 0
for i in range(int(input())):
	(a, b) = get_ints()
	if a > b:
		m += 1
	elif b > a:
		c += 1
if m == c:
	print('Friendship is magic!^^')
else:
	print('Mishka' if m > c else 'Chris')


a = 0
for i in range(int(input())):
	(x, y) = input().split(' ')
	if int(x) > int(y):
		a += 1
	if int(x) < int(y):
		a -= 1
if a > 0:
	print('Mishka')
if a < 0:
	print('Chris')
if a == 0:
	print('Friendship is magic!^^')


mtot = 0
ctot = 0
for n in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		mtot += 1
	elif c > m:
		ctot += 1
if ctot > mtot:
	print('Chris')
elif ctot < mtot:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
x = []
z = []
for i in range(n):
	(M, K) = map(int, input().split())
	if M > K:
		x.append(1)
	elif M < K:
		z.append(1)
if sum(x) > sum(z):
	print('Mishka')
elif sum(x) < sum(z):
	print('Chris')
elif sum(x) == sum(z):
	print('Friendship is magic!^^')


import math
import string
n = int(input())
mis = 0
chi = 0
for i in range(0, n):
	s = str(input()).split()
	a = int(s[0])
	b = int(s[1])
	if a > b:
		mis += 1
	elif a < b:
		chi += 1
if mis > chi:
	print('Mishka')
elif mis == chi:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
m1 = 0
c1 = 0
kolvopobed_m = 0
kolvopobed_c = 0
for i in range(n):
	(m1, c1) = map(int, input().split())
	if m1 != c1:
		if m1 > c1:
			kolvopobed_m += 1
		else:
			kolvopobed_c += 1
if kolvopobed_m != kolvopobed_c:
	if kolvopobed_m > kolvopobed_c:
		print('Mishka')
	else:
		print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
mishika = 0
chris = 0
for i in range(a):
	(c, d) = map(int, input().split())
	if c > d:
		mishika += 1
	elif d > c:
		chris += 1
if mishika > chris:
	print('Mishka')
elif mishika == chris:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
t = 0
m = 0
for i in range(n):
	a = [int(x) for x in input().split()]
	if a[0] > a[1]:
		t += 1
	elif a[0] < a[1]:
		m += 1
	if a[0] == a[1]:
		t += 1
		m += 1
if t > m:
	print('Mishka')
elif t < m:
	print('Chris')
else:
	print('Friendship is magic!^^')


rounds = int(input())
mishka_score = 0
chris_score = 0
for i in range(rounds):
	results = input()
	if int(results[0]) > int(results[2]):
		mishka_score = mishka_score + 1
	elif int(results[0]) < int(results[2]):
		chris_score = chris_score + 1
if mishka_score > chris_score:
	print('Mishka')
elif mishka_score < chris_score:
	print('Chris')
else:
	print('Friendship is magic!^^')


import os
import sys
x = int(input())
m = 0
c = 0
for i in range(0, x):
	results = input().split(' ')
	if results[0] > results[1]:
		m = m + 1
	elif results[0] < results[1]:
		c = c + 1
if m > c:
	print('Mishka')
elif c > m:
	print('Chris')
else:
	print('Friendship is magic!^^')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().split()]

def LS():
	return sys.stdin.readline().split()

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def S():
	return input()

def pf(s):
	return print(s, flush=True)

def main():
	n = I()
	r = 0
	for _ in range(n):
		(a, b) = LI()
		if a > b:
			r += 1
		elif a < b:
			r -= 1
	if r > 0:
		return 'Mishka'
	if r < 0:
		return 'Chris'
	return 'Friendship is magic!^^'
print(main())


num = int(input())
mishka = 0
chris = 0
for x in range(num):
	res = [int(x) for x in input().strip().split(' ')]
	if res[0] > res[1]:
		mishka += 1
	elif res[0] == res[1]:
		pass
	else:
		chris += 1
if mishka > chris:
	print('Mishka')
elif chris > mishka:
	print('Chris')
else:
	print('Friendship is magic!^^')


balance = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		balance += 1
	elif m < c:
		balance -= 1
print({balance == 0: 'Friendship is magic!^^', balance > 0: 'Mishka', balance < 0: 'Chris'}[True])


n = int(input())
chris = 0
bear = 0
for j in range(n):
	(a, b) = map(int, input().split())
	if b > a:
		chris += 1
	if a > b:
		bear += 1
if chris == bear:
	print('Friendship is magic!^^')
if chris > bear:
	print('Chris')
if bear > chris:
	print('Mishka')


n = int(input())
d = {'Mishka': 0, 'Chris': 0}
while n:
	(a, b) = input().split(' ')
	(a, b) = (int(a), int(b))
	if a > b:
		d['Mishka'] = d['Mishka'] + 1
	elif a < b:
		d['Chris'] = d['Chris'] + 1
	else:
		pass
	n = n - 1
key = list(d.keys())
val = list(d.values())
if val[0] == val[1]:
	print('Friendship is magic!^^')
else:
	print(key[val.index(max(val))])


n = int(input())
Mishka = Chris = 0
t = 0
while t < n:
	(x, y) = map(int, input().split())
	if x > y:
		Mishka = Mishka + 1
	if x < y:
		Chris = Chris + 1
	t = t + 1
if Mishka > Chris:
	print('Mishka')
if Mishka < Chris:
	print('Chris')
if Mishka == Chris:
	print('Friendship is magic!^^')


n = int(input())
(mishika, anita) = (0, 0)
for m in range(n):
	(o, p) = map(int, input().split())
	if o > p:
		mishika += 1
	elif p > o:
		anita += 1
if mishika > anita:
	print('Mishka')
elif anita > mishika:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
M = C = 0
for i in range(n):
	(x, y) = map(int, input().split())
	if x > y:
		M += 1
	elif y > x:
		C += 1
if M > C:
	print('Mishka')
elif C > M:
	print('Chris')
else:
	print('Friendship is magic!^^')


def main():
	x = 0
	for _ in range(int(input())):
		(a, b) = input().split()
		if a > b:
			x += 1
		elif a < b:
			x -= 1
	print(('Friendship is magic!^^', 'Mishka', 'Chris')[x // abs(x) if x else 0])
main()


n = int(input())
t = 0
for i in range(n):
	(k, l) = map(int, input().split())
	if k != l:
		t += int((k - l) / abs(k - l))
if t == 0:
	print('Friendship is magic!^^')
elif t < 0:
	print('Chris')
else:
	print('Mishka')


number_of_rounds = int(input())
rounds = []
for pairs in range(number_of_rounds):
	rounds.append(list(map(int, input().split())))
mishka = 0
chris = 0
for round in range(len(rounds)):
	if rounds[round][0] > rounds[round][1]:
		mishka += 1
	elif rounds[round][0] < rounds[round][1]:
		chris += 1
	else:
		continue
if mishka > chris:
	print('Mishka')
elif mishka < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


x = int(input())
c1 = 0
c2 = 0
c3 = 0
for i in range(x):
	(x, y) = map(int, input().split())
	if x > y:
		c1 = c1 + 1
	if x < y:
		c2 = c2 + 1
if c1 > c2:
	print('Mishka')
if c2 > c1:
	print('Chris')
if c1 == c2:
	print('Friendship is magic!^^')


n = int(input())
mp = cp = 0
while n:
	(m, c) = map(int, input().split())
	if m > c:
		mp += 1
	elif m < c:
		cp += 1
	n -= 1
if mp > cp:
	print('Mishka')
elif mp < cp:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
(mishka, chris) = (0, 0)
for _ in range(n):
	(u, v) = map(int, input().split())
	if u > v:
		mishka += 1
	elif v > u:
		chris += 1
if mishka == chris:
	print('Friendship is magic!^^')
elif mishka > chris:
	print('Mishka')
else:
	print('Chris')


gameCount = int(input())
result = 0
for i in range(gameCount):
	gameValuesStrs = input().split(' ')
	mishkaValue = int(gameValuesStrs[0])
	chrisValue = int(gameValuesStrs[1])
	if mishkaValue > chrisValue:
		result += 1
	elif mishkaValue < chrisValue:
		result -= 1
if result > 0:
	print('Mishka')
elif result < 0:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
total_a = 0
total_b = 0
for el in range(n):
	(a, b) = map(int, input().split())
	if a > b:
		total_a += 1
	elif a < b:
		total_b += 1
if total_a > total_b:
	print('Mishka')
elif total_a < total_b:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
a1 = 0
b1 = 0
for _ in range(t):
	(a, b) = map(int, input().split())
	if a > b:
		a1 += 1
	elif a < b:
		b1 += 1
if a1 > b1:
	print('Mishka')
elif b1 > a1:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m_nr = 0
c_nr = 0
for i in range(n):
	line = input()
	words = line.split(' ')
	m = int(words[0])
	c = int(words[1])
	if m > c:
		m_nr += 1
	elif m < c:
		c_nr += 1
if m_nr > c_nr:
	print('Mishka')
elif m_nr < c_nr:
	print('Chris')
else:
	print('Friendship is magic!^^')


t = int(input())
mish = 0
chris = 0
for i in range(t):
	(a, b) = map(int, input().split())
	if a > b:
		mish += 1
	elif b > a:
		chris += 1
	else:
		continue
if mish > chris:
	print('Mishka')
elif chris > mish:
	print('Chris')
else:
	print('Friendship is magic!^^')


r = int(input())
x = 0
y = 0
z = 0
for n in range(r):
	(m, c) = map(int, input().strip().split())
	if m > c:
		x = x + 1
	elif c > m:
		y = y + 1
	elif m == c:
		z = z + 1
if x > y:
	print('Mishka')
elif y > x:
	print('Chris')
elif x == y:
	print('Friendship is magic!^^')


n = int(input())
mish_count = 0
chris_count = 0
for i in range(n):
	(a, b) = input().split(' ')
	(a, b) = (int(a), int(b))
	if a > b:
		mish_count += 1
	elif b > a:
		chris_count += 1
	else:
		continue
if mish_count > chris_count:
	print('Mishka')
elif chris_count > mish_count:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
count = 0
count1 = 0
count2 = 0
for i in range(n):
	(m, c) = [int(x) for x in input().split()]
	if m > c:
		count += 1
	elif m < c:
		count1 += 1
	else:
		count2 += 1
if count > count1:
	print('Mishka')
elif count1 > count:
	print('Chris')
elif count1 == count:
	print('Friendship is magic!^^')


n = int(input())
mishkaWins = 0
chrisWins = 0
for i in range(n):
	(mishka, chris) = [int(i) for i in input().split()]
	if mishka > chris:
		mishkaWins += 1
	elif mishka < chris:
		chrisWins += 1
if mishkaWins == chrisWins:
	print('Friendship is magic!^^')
elif mishkaWins > chrisWins:
	print('Mishka')
else:
	print('Chris')


try:
	while True:
		n = int(input())
		a = b = 0
		for i in range(n):
			(x, y) = map(int, input().split())
			if x > y:
				a += 1
			elif y > x:
				b += 1
		if a > b:
			print('Mishka')
		elif b > a:
			print('Chris')
		else:
			print('Friendship is magic!^^')
except EOFError:
	pass


n = int(input())
g = l = e = 0
(m, c) = zip(*(input().split() for i in range(n)))
for (i, j) in zip(m, c):
	g += i > j
	l += i < j
	e += i == j
print('Mishka' if g > l else 'Chris' if g < l else 'Friendship is magic!^^')


import math
import sys
from sys import *
import heapq
from collections import deque, defaultdict
from itertools import permutations, combinations, combinations_with_replacement
import random
import os
mod = 10 ** 9 + 7
MAX = sys.maxsize
MIN = -sys.maxsize - 1

def isPrime(n):
	if n > 1:
		for i in range(2, n):
			if n % i == 0:
				return False
		else:
			return True
	else:
		return False

def isPanagram(s):
	alphabet = 'abcdefghijklmnopqrstuvwxyz'
	for char in alphabet:
		if char not in s.lower():
			return False
	return True

def power2(n):
	return n and (not n & n - 1)

def diff(list1):
	res = [list1[i + 1] - list1[i] for i in range(len(list1) - 1)]
	return res

def isEqual(list1):
	if len(list1) < 0:
		res = True
	res = all((ele == list1[0] for ele in list1))
	if res:
		return True
	else:
		return False

def checkPali(s):
	ar = [0] * 256
	for i in range(len(s)):
		ar[ord(s[i])] = ar[ord(s[i])] + 1
	odd = 0
	for i in range(256):
		if ar[i] & 1:
			odd += 1
		if odd > 1:
			return False
	return True

def remove_duplicate(list1):
	final_list = list(set(list1))
	return final_list

def solve():
	t = int(input())
	(m1, c1) = (0, 0)
	for i in range(t):
		(m, c) = map(int, input().split())
		if m > c:
			m1 += 1
		elif m < c:
			c1 += 1
	if m1 > c1:
		return 'Mishka'
	elif m1 < c1:
		return 'Chris'
	else:
		return 'Friendship is magic!^^'
result = solve()
stdout.write(str(result) + '\n')


n = int(input())
m = [tuple(map(int, input().split())) for _ in range(n)]
m = list(filter(lambda x: x[0] != x[1], m))
C = len(list(filter(lambda x: x[0] < x[1], m)))
M = len(list(filter(lambda x: x[0] > x[1], m)))
if C > M:
	print('Chris')
elif M > C:
	print('Mishka')
else:
	print('Friendship is magic!^^')


n = int(input())
count1 = 0
count2 = 0
for a in range(0, n):
	(z, x) = map(int, input().split())
	if z > x:
		count1 += 1
	elif x > z:
		count2 += 1
	else:
		continue
if count1 > count2:
	print('Mishka')
elif count2 > count1:
	print('Chris')
else:
	print('Friendship is magic!^^')


a = int(input())
dice_results = [input() for i in range(a)]
mishka = 0
chris = 0
for i in dice_results:
	j = i.split()
	if int(j[0]) > int(j[1]):
		mishka += 1
	elif int(j[0]) < int(j[1]):
		chris += 1
if mishka > chris:
	print('Mishka')
elif mishka < chris:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input(''))
i = 0
values = []
m_wins = 0
c_wins = 0
draw = 0
val = 0
while i < n:
	values.append(input('').split(' '))
	i += 1
while val < len(values):
	if int(values[val][0]) > int(values[val][1]):
		m_wins += 1
	elif int(values[val][0]) < int(values[val][1]):
		c_wins += 1
	else:
		draw += 1
	val += 1
if m_wins > c_wins:
	print('Mishka')
elif m_wins < c_wins:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
dice = list()
for j in range(n):
	dice.append(list(map(int, input().split())))
win = list()
for j in range(n):
	if dice[j][0] > dice[j][1]:
		win.append(1)
	elif dice[j][1] > dice[j][0]:
		win.append(2)
	else:
		win.append(0)
if win.count(1) > win.count(2):
	print('Mishka')
elif win.count(2) > win.count(1):
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
result = 0
for i in range(n):
	t = input().split()
	m = int(t[0])
	c = int(t[1])
	if m > c:
		result += 1
	elif c > m:
		result += -1
	else:
		pass
if result == 0:
	print('Friendship is magic!^^')
elif result > 0:
	print('Mishka')
else:
	print('Chris')


n = int(input())
lst = list()
i = 0
while i < n:
	data = input()
	for j in data.split():
		lst.append(int(j))
	i = i + 1
CM = 0
CC = 0
l = len(lst)
k = 0
while k < l - 1:
	if lst[k] > lst[k + 1]:
		CM = CM + 1
	elif lst[k] < lst[k + 1]:
		CC = CC + 1
	else:
		CM = CM + 1
		CC = CC + 1
	k = k + 2
if CM > CC:
	print('Mishka')
elif CM < CC:
	print('Chris')
elif CM == CC:
	print('Friendship is magic!^^')


tm = 0
tc = 0
for _ in range(int(input())):
	(m, c) = map(int, input().split())
	if m > c:
		tm += 1
	elif c > m:
		tc += 1
	else:
		continue
if tm > tc:
	print('Mishka')
elif tm == tc:
	print('Friendship is magic!^^')
else:
	print('Chris')


n = int(input())
mi = 0
fr = 0
for _ in range(n):
	(m, f) = map(int, input().split())
	if m > f:
		mi += 1
	elif f > m:
		fr += 1
if mi > fr:
	print('Mishka')
elif fr > mi:
	print('Chris')
else:
	print('Friendship is magic!^^')


n = int(input())
m = 0
c = 0
for i in range(n):
	(mis, chr) = [int(nums) for nums in input().split()]
	if mis > chr:
		m = m + 1
	elif mis < chr:
		c = c + 1
if m > c:
	print('Mishka')
elif m < c:
	print('Chris')
else:
	print('Friendship is magic!^^')


def game(ar):
	m = 0
	c = 0
	for i in ar:
		if i[0] > i[1]:
			m += 1
		elif i[1] > i[0]:
			c += 1
	if m > c:
		print('Mishka')
	elif c > m:
		print('Chris')
	elif m == c:
		print('Friendship is magic!^^')
count = int(input())
a = []
for _ in range(0, count):
	a.append(list(map(int, input().rstrip().split())))
game(a)