Codeforces Round 365 (Div. 2)
A
Mishka and Game
Codeforces
800
原题
←B →
翻译中…

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.

翻译中…

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.

翻译中…

样例

Input #1
3
3 5
2 1
4 2
Output #1
Mishka
InputCopy OutputCopy
Input #2
2
6 1
1 6
Output #2
Friendship is magic!^^
InputCopy OutputCopy
Input #3
3
1 5
3 3
2 2
Output #3
Chris
InputCopy OutputCopy
题目信息
题号
703A
时间限制
1 s
内存限制
256 MB
标签
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。