题库练习 Mishka and Game
← 上一题 下一题 →

A10520 | Mishka and Game

时间限制1s
内存限制256MB
通过 / 提交0/0

题目描述

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!

输入格式

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.

输出格式

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.

输入输出样例

输入 #1
3
3 5
2 1
4 2
输出 #1
Mishka
输入 #2
2
6 1
1 6
输出 #2
Friendship is magic!^^
输入 #3
3
1 5
3 3
2 2
输出 #3
Chris
C++ 编辑器
输入
输出