From 2f852744cf8d5c8b3efef99102458c2dbebc0960 Mon Sep 17 00:00:00 2001 From: Aayush Jha Date: Thu, 16 Oct 2025 23:39:12 +0530 Subject: [PATCH] Implement game logic for Mishka and Chris --- misha_game.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 misha_game.py diff --git a/misha_game.py b/misha_game.py new file mode 100644 index 00000000..10ec1c23 --- /dev/null +++ b/misha_game.py @@ -0,0 +1,16 @@ +n = int(input()) +count = 0 +j = 0 +for i in range(n): + m_i, c_i = map(int, input().split()) + if m_i > c_i: + j += 1 + elif c_i > m_i: + count += 1 + +if j > count: + print("Mishka") +elif count > j: + print("Chris") +else: + print("Friendship is magic!^^")