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: interview

Starter code:

Solutions:
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())
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")

score=0
for _ in range(int(input())):
    a, b = list(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")


n = int(input())
m,c = 0,0

for i in range(n):
	a,b = [int(x) for x in input().split(' ')]
	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!^^')

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


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

#!/usr/bin/env python3

try:
    while True:
        n = int(input())
        a = b = 0
        for i in range(n):
            x, y = list(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


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)

n = int(input())
m = 0
c = 0
for _ in range(n):
    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")
else:
    print("Friendship is magic!^^")

# coding: utf-8





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 = list(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")


n = int(input())
a, b = 0, 0
for _ in range(n):
    u, v = list(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!^^')
    


n = int(input())
num = 0
num2 = 0
while n > 0:
    n -= 1
    m,c = list(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())
m_win = 0
c_win = 0
for i  in range(n):
 m, c = list(map(int, input().split()))
 if m > c: m_win +=1
 if c > m: c_win +=1
if m_win > c_win:
    print('Mishka')
elif c_win > m_win:
    print('Chris')
else:
    print('Friendship is magic!^^')
 


#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import time

#   = input()
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()
#print(finish - start)


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")

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

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


n = int(input())
A = 0
B = 0
for i in range(n):
    a, b = list(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!^^')


n = int(input())
u, v = 0, 0
for _ in range(n):
    x, y = list(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!^^')


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())
count1,count2=0,0
for i in range(n):
	a,b = map(int,input().split())
	if(a>b):
		count1+=1
	elif(a<b):
		count2+=1
if(count1==count2):
	print("Friendship is magic!^^")
elif(count1>count2):
	print("Mishka")
else:
	print("Chris")

n = int(input())
m = 0
c = 0
for i in range(n):
    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!^^')

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 = 0
c = 0

for i in range(n):
    a, b = map(int, input().split())
    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!^^")