import java.io.*;
import java.util.*;
import java.util.stream.IntStream;

import static java.lang.Math.*;
import static java.util.Arrays.*;

@SuppressWarnings("ALL")
public class MishkaandGame {
    public static void main(String[] $) throws IOException {
        MishkaandGame o = new MishkaandGame();
        o.main();
        out.flush();
        out.close();
    }

    void main() throws IOException {
        int T = in.ri();
        int M = 0, C = 0;
        while (T-- > 0) {
            int a, b;
            in.r();
            a = in.ni();
            b = in.ni();
            M += a > b ? 1 : C++;
        }
        if (M > C) out.prln("Mishka");
        else if (M < C) out.prln("Chris");
        else if(M==C) out.prln("Friendship is magic!^^");
    }

    static BufferedReader __in = new BufferedReader(new InputStreamReader(System.in));
    static PrintWriter __out = new PrintWriter(new OutputStreamWriter(System.out));
    static StringTokenizer input;
    static Random __rand = new Random();
    // constants
    static final int IBIG = 1000000007;
    static final int IMAX = 2147483647;
    static final int IMIN = -2147483648;
    static final long LMAX = 9223372036854775807L;
    static final long LMIN = -9223372036854775808L;

    //Fast Reader Class
    /*static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }*/

    //Input fxs
    static class in {
        // input
        static void r() throws IOException {
            input = new StringTokenizer(rline());
        }

        static int ri() throws IOException {
            return Integer.parseInt(rline());
        }

        static long rl() throws IOException {
            return Long.parseLong(rline());
        }

        static double rd() throws IOException {
            return Double.parseDouble(rline());
        }

        static int[] ria(int n) throws IOException {
            int[] a = new int[n];
            r();
            for (int i = 0; i < n; ++i) a[i] = ni();
            return a;
        }

        static int[] riam1(int n) throws IOException {
            int[] a = new int[n];
            r();
            for (int i = 0; i < n; ++i) a[i] = ni() - 1;
            return a;
        }

        static long[] ria1i(long n) throws IOException {
            long[] a = new long[(int) n + 1];
            r();
            for (int i = 1; i <= n; i++) a[i] = nl();
            return a;
        }

        static long[] rla(int n) throws IOException {
            long[] a = new long[n];
            r();
            for (int i = 0; i < n; ++i) a[i] = nl();
            return a;
        }

        static double[] rda(int n) throws IOException {
            double[] a = new double[n];
            r();
            for (int i = 0; i < n; ++i) a[i] = nd();
            return a;
        }

        static char[] rcha() throws IOException {
            return rline().toCharArray();
        }

        static ArrayList<Integer> riaa(int n) throws IOException {
            ArrayList<Integer> a = new ArrayList<>();
            r();
            for (int i = 0; i < n; i++) a.add(ni());
            return a;
        }

        static String rline() throws IOException {
            return __in.readLine();
        }

        static String n() {
            return input.nextToken();
        }

        static int rni() throws IOException {
            r();
            return ni();
        }

        static int ni() {
            return Integer.parseInt(n());
        }

        static long rnl() throws IOException {
            r();
            return nl();
        }

        static long nl() {
            return Long.parseLong(n());
        }

        static double rnd() throws IOException {
            r();
            return nd();
        }

        static double nd() {
            return Double.parseDouble(n());
        }

        static List<List<Integer>> rg(int n, int m) throws IOException {
            List<List<Integer>> g = GR.g(n);
            for (int i = 0; i < m; ++i) GR.c(g, rni() - 1, ni() - 1);
            return g;
        }

        static void rg(List<List<Integer>> g, int m) throws IOException {
            for (int i = 0; i < m; ++i) GR.c(g, rni() - 1, ni() - 1);
        }

        static List<List<Integer>> rdg(int n, int m) throws IOException {
            List<List<Integer>> g = GR.g(n);
            for (int i = 0; i < m; ++i) GR.cto(g, rni() - 1, ni() - 1);
            return g;
        }

        static void rdg(List<List<Integer>> g, int m) throws IOException {
            for (int i = 0; i < m; ++i) GR.cto(g, rni() - 1, ni() - 1);
        }

        static List<Set<Integer>> rsg(int n, int m) throws IOException {
            List<Set<Integer>> g = GR.sg(n);
            for (int i = 0; i < m; ++i) GR.c(g, rni() - 1, ni() - 1);
            return g;
        }

        static void rsg(List<Set<Integer>> g, int m) throws IOException {
            for (int i = 0; i < m; ++i) GR.c(g, rni() - 1, ni() - 1);
        }

        static List<Set<Integer>> rdsg(int n, int m) throws IOException {
            List<Set<Integer>> g = GR.sg(n);
            for (int i = 0; i < m; ++i) GR.cto(g, rni() - 1, ni() - 1);
            return g;
        }

        static void rdsg(List<Set<Integer>> g, int m) throws IOException {
            for (int i = 0; i < m; ++i) GR.cto(g, rni() - 1, ni() - 1);
        }

        static int[][] rim(int n, int m) throws IOException {
            int[][] a = new int[n][m];
            for (int i = 0; i < n; i++) {
                in.r();
                for (int j = 0; j < m; j++) {
                    a[i][j] = in.ni();
                }
            }
            return a;
        }
    }

    //Output fxs
    static class out {
        // output
        static void pr(int i) {
            __out.print(i);
        }

        static void prln(int i) {
            __out.println(i);
        }

        static void pr(long l) {
            __out.print(l);
        }

        static void prln(long l) {
            __out.println(l);
        }

        static void pr(double d) {
            __out.print(d);
        }

        static void prln(double d) {
            __out.println(d);
        }

        static void pr(char c) {
            __out.print(c);
        }

        static void prln(char c) {
            __out.println(c);
        }

        static void pr(char[] s) {
            __out.print(new String(s));
        }

        static void prln(char[] s) {
            __out.println(new String(s));
        }

        static void pr(String s) {
            __out.print(s);
        }

        static void prln(String s) {
            __out.println(s);
        }

        static void pr(Object o) {
            __out.print(o);
        }

        static void prln(Object o) {
            __out.println(o);
        }

        static void prln() {
            __out.println();
        }

        static void pryes() {
            prln("yes");
        }

        static void pry() {
            prln("Yes");
        }

        static void prY() {
            prln("YES");
        }

        static void prno() {
            prln("no");
        }

        static void prn() {
            prln("No");
        }

        static void prN() {
            prln("NO");
        }

        static void pryesno(boolean b) {
            prln(b ? "yes" : "no");
        }

        ;

        static void pryn(boolean b) {
            prln(b ? "Yes" : "No");
        }

        static void prYN(boolean b) {
            prln(b ? "YES" : "NO");
        }

        static void prln(int... a) {
            for (int i = 0, len = a.length - 1; i < len; pr(a[i]), pr(' '), ++i) ;
            if (a.length > 0) prln(a[a.length - 1]);
            else prln();
        }

        static void prln(long... a) {
            for (int i = 0, len = a.length - 1; i < len; pr(a[i]), pr(' '), ++i) ;
            if (a.length > 0) prln(a[a.length - 1]);
            else prln();
        }

        static void prln(double... a) {
            for (int i = 0, len = a.length - 1; i < len; pr(a[i]), pr(' '), ++i) ;
            if (a.length > 0) prln(a[a.length - 1]);
            else prln();
        }

        static <T> void prln(Collection<T> c) {
            int n = c.size() - 1;
            Iterator<T> iter = c.iterator();
            for (int i = 0; i < n; pr(iter.next()), pr(' '), ++i) ;
            if (n >= 0) prln(iter.next());
            else prln();
        }

        static void h() {
            prln("hlfd");
            flush();
        }

        static void flush() {
            __out.flush();
        }

        static void close() {
            __out.close();
        }

        static void prM(int[][] a, int n, int m) {
            for (int i = 0; i < m; i++) {
                for (int j = 0; j < n; j++)
                    out.pr(a[i][j] + " ");
                out.prln();
            }
        }
    }

    //Math fxs
    static class mathx {
        // math util
        static int minof(int a, int b, int c) {
            return min(a, min(b, c));
        }

        static int minof(int... x) {
            if (x.length == 1) return x[0];
            if (x.length == 2) return min(x[0], x[1]);
            if (x.length == 3) return min(x[0], min(x[1], x[2]));
            int min = x[0];
            for (int i = 1; i < x.length; ++i) if (x[i] < min) min = x[i];
            return min;
        }

        static long minof(long a, long b, long c) {
            return min(a, min(b, c));
        }

        static long minof(long... x) {
            if (x.length == 1) return x[0];
            if (x.length == 2) return min(x[0], x[1]);
            if (x.length == 3) return min(x[0], min(x[1], x[2]));
            long min = x[0];
            for (int i = 1; i < x.length; ++i) if (x[i] < min) min = x[i];
            return min;
        }

        static int maxof(int a, int b, int c) {
            return max(a, max(b, c));
        }

        static int maxof(int... x) {
            if (x.length == 1) return x[0];
            if (x.length == 2) return max(x[0], x[1]);
            if (x.length == 3) return max(x[0], max(x[1], x[2]));
            int max = x[0];
            for (int i = 1; i < x.length; ++i) if (x[i] > max) max = x[i];
            return max;
        }

        static long maxof(long a, long b, long c) {
            return max(a, max(b, c));
        }

        static long maxof(long... x) {
            if (x.length == 1) return x[0];
            if (x.length == 2) return max(x[0], x[1]);
            if (x.length == 3) return max(x[0], max(x[1], x[2]));
            long max = x[0];
            for (int i = 1; i < x.length; ++i) if (x[i] > max) max = x[i];
            return max;
        }

        static int powi(int a, int b) {
            if (a == 0) return 0;
            int ans = 1;
            while (b > 0) {
                if ((b & 1) > 0) ans *= a;
                a *= a;
                b >>= 1;
            }
            return ans;
        }

        static long powl(long a, int b) {
            if (a == 0) return 0;
            long ans = 1;
            while (b > 0) {
                if ((b & 1) > 0) ans *= a;
                a *= a;
                b >>= 1;
            }
            return ans;
        }

        static int fli(double d) {
            return (int) d;
        }

        static int cei(double d) {
            return (int) ceil(d);
        }

        static long fll(double d) {
            return (long) d;
        }

        static long cel(double d) {
            return (long) ceil(d);
        }

        static int gcf(int a, int b) {
            return b == 0 ? a : gcf(b, a % b);
        }

        static long gcf(long a, long b) {
            return b == 0 ? a : gcf(b, a % b);
        }

        static int lcm(int a, int b) {
            return a * b / gcf(a, b);
        }

        static long lcm(long a, long b) {
            return a * b / gcf(a, b);
        }

        static int randInt(int min, int max) {
            return __rand.nextInt(max - min + 1) + min;
        }

        static long mix(long x) {
            x += 0x9e3779b97f4a7c15L;
            x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9L;
            x = (x ^ (x >> 27)) * 0x94d049bb133111ebL;
            return x ^ (x >> 31);
        }
    }

    //Array fxs
    static class ARR {
        // array util
        static void reverse(int[] a) {
            for (int i = 0, n = a.length, half = n / 2; i < half; ++i) {
                int swap = a[i];
                a[i] = a[n - i - 1];
                a[n - i - 1] = swap;
            }
        }

        static void reverse(long[] a) {
            for (int i = 0, n = a.length, half = n / 2; i < half; ++i) {
                long swap = a[i];
                a[i] = a[n - i - 1];
                a[n - i - 1] = swap;
            }
        }

        static void reverse(double[] a) {
            for (int i = 0, n = a.length, half = n / 2; i < half; ++i) {
                double swap = a[i];
                a[i] = a[n - i - 1];
                a[n - i - 1] = swap;
            }
        }

        static void reverse(char[] a) {
            for (int i = 0, n = a.length, half = n / 2; i < half; ++i) {
                char swap = a[i];
                a[i] = a[n - i - 1];
                a[n - i - 1] = swap;
            }
        }

        static void shuffle(int[] a) {
            int n = a.length - 1;
            for (int i = 0; i < n; ++i) {
                int ind = mathx.randInt(i, n);
                int swap = a[i];
                a[i] = a[ind];
                a[ind] = swap;
            }
        }

        static void shuffle(long[] a) {
            int n = a.length - 1;
            for (int i = 0; i < n; ++i) {
                int ind = mathx.randInt(i, n);
                long swap = a[i];
                a[i] = a[ind];
                a[ind] = swap;
            }
        }

        static void shuffle(double[] a) {
            int n = a.length - 1;
            for (int i = 0; i < n; ++i) {
                int ind = mathx.randInt(i, n);
                double swap = a[i];
                a[i] = a[ind];
                a[ind] = swap;
            }
        }

        static void rsort(int[] a) {
            shuffle(a);
            sort(a);
        }

        static void rsort(long[] a) {
            shuffle(a);
            sort(a);
        }

        static void rsort(double[] a) {
            shuffle(a);
            sort(a);
        }

        static int[] copy(int[] a) {
            int[] ans = new int[a.length];
            System.arraycopy(a, 0, ans, 0, a.length);
            return ans;
        }

        static long[] copy(long[] a) {
            long[] ans = new long[a.length];
            System.arraycopy(a, 0, ans, 0, a.length);
            return ans;
        }

        static double[] copy(double[] a) {
            double[] ans = new double[a.length];
            System.arraycopy(a, 0, ans, 0, a.length);
            return ans;
        }

        static char[] copy(char[] a) {
            char[] ans = new char[a.length];
            System.arraycopy(a, 0, ans, 0, a.length);
            return ans;
        }
    }

    //Graph fxs
    static class GR {
        // graph util
        static List<List<Integer>> g(int n) {
            List<List<Integer>> g = new ArrayList<>();
            for (int i = 0; i < n; ++i) g.add(new ArrayList<>());
            return g;
        }

        static List<Set<Integer>> sg(int n) {
            List<Set<Integer>> g = new ArrayList<>();
            for (int i = 0; i < n; ++i) g.add(new HashSet<>());
            return g;
        }

        static void c(List<? extends Collection<Integer>> g, int u, int v) {
            g.get(u).add(v);
            g.get(v).add(u);
        }

        static void cto(List<? extends Collection<Integer>> g, int u, int v) {
            g.get(u).add(v);
        }

        static void dc(List<? extends Collection<Integer>> g, int u, int v) {
            g.get(u).remove(v);
            g.get(v).remove(u);
        }

        static void dcto(List<? extends Collection<Integer>> g, int u, int v) {
            g.get(u).remove(v);
        }
    }

    //Utilsx class
    static class utilX {
        static int[] subsetSum(int[] nums) {
            int M = IntStream.of(nums).sum();
            int[] m = new int[M + 10];
            for (int i = 0; i < M + 10; i++) m[i] = 0;
            m[0] = 1;
            for (int num : nums) {
                for (int j = M; j >= num; j--) {
                    m[j] |= m[j - num];
                }
            }
            return m;
        }

        static int LIS(int[] nums) {
            int[] m = new int[nums.length];
            for (int i = nums.length - 1; i >= 0; i--) {
                m[i] = 1;
                for (int j = i + 1; j < nums.length; j++) {
                    if (nums[j] > nums[i]) {
                        m[i] = max(m[i], m[j] + 1);
                    }
                }
            }
            int ans = 0;
            for (int i = 0; i < nums.length; i++) {
                ans = max(ans, m[i]);
            }
            return ans;
        }
    }

    //Pair Class
    static class Pair<F, S> {
        public final F first;
        public final S second;

        public Pair(F first, S second) {
            this.first = first;
            this.second = second;
        }

        @Override
        public boolean equals(Object o) {
            if (!(o instanceof Pair)) {
                return false;
            }
            Pair<?, ?> p = (Pair<?, ?>) o;
            return Objects.equals(p.first, first) && Objects.equals(p.second, second);
        }
    }
}


import java.util.*;

public class Main {
        static int fact(int n){
            if(n==1)
                return 1;
            return n*fact(n-1);
        }
    public static void main(String[] args) {
        Scanner s= new Scanner(System.in);
        int n=s.nextInt();
        int n1=0;
        int n2=0;
        while(n-->0){
            int m=s.nextInt();
            int c=s.nextInt();

            if(m>c){
                n1++;
            }
            else if(m<c){
                n2++;
            }
            else{
                n1++;
                n2++;
            }
        }
        if(n1>n2)
        System.out.println("Mishka");
        else if(n2>n1)
        System.out.println("Chris");
        else
        System.out.println("Friendship is magic!^^");

    }
}


import java.util.*;

public class solution {

	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		int mi=0;
		int ci=0;
		for(int i=0;i<n;i++) {
			int m=s.nextInt();
			int c=s.nextInt();
			if(m>c) {
				mi++;
			}
			else if(c>m) {
				ci++;
			}
		}
		if(mi>ci) {
			System.out.print("Mishka");
		}
		else if(ci>mi) {
			System.out.print("Chris");
		}
		else {
			System.out.print("Friendship is magic!^^");
		}

		s.close();
	}
}


import java.util.Scanner;

public class MishikaGame703A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mC = 0, cC = 0;
        while(n-->0) {
            int Mishika = sc.nextInt();
            int Chris = sc.nextInt();
            if(Mishika>Chris) mC++;
            else if(Chris > Mishika) cC++;

        }
        if(mC > cC) System.out.print("Mishka");
        else if(cC > mC) System.out.print("Chris");
        else System.out.print("Friendship is magic!^^");
    }
}


import java.util.Scanner;

public class MishikaGame703A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mC = 0, cC = 0;
        while(n-->0) {
            int Mishika = sc.nextInt();
            int Chris = sc.nextInt();
            if(Mishika>Chris) mC++;
            else if(Chris > Mishika) cC++;

        }
        if(mC > cC) System.out.print("Mishika");
        else if(cC > mC) System.out.print("Chrish");
        else System.out.print("Friendship is magic!^^");
    }
}


import java.nio.charset.IllegalCharsetNameException;
import java.util.*;
import java.util.concurrent.LinkedTransferQueue;

 public  class solution {

     public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
         int n = sc.nextInt() ;
         int maxA = 0 ;
         int maxB = 0 ;
         while (n-- > 0) {
            int a = sc.nextInt() ;
            int b = sc.nextInt() ;
            if (a > b)
                maxA++ ;
            if (a < b )
                maxB++ ;
        }
        if (maxA > maxB)
            System.out.println("Mishka");
        else if (maxA < maxB)
            System.out.println("Chris");
        else
            System.out.println("Friendship is magic!^^");

         }

     }


import java.nio.charset.IllegalCharsetNameException;
import java.util.*;
import java.util.concurrent.LinkedTransferQueue;

 public  class solution {

     public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
         int n = sc.nextInt() ;
         int maxA = 0 ;
         int curr = n ;

         while (curr-- > 0) {
            int a = sc.nextInt() ;
            int b = sc.nextInt() ;
            if (a > b)
                maxA++ ;
        }
        if (maxA > n - maxA)
            System.out.println( "Mishka");
        else if (maxA < n - maxA)
            System.out.println("Chris");
        else
            System.out.println( "Friendship is magic!^^");

         }

     }


//package com.baba;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int a = 0;
        int b = 0;
        for (int i = 0; i < n; i++) {
            a += s.nextInt();
            b += s.nextInt();
        }
        if (a==b){
            System.out.println("Friendship is magic!^^");
        }else if (a>b){
            System.out.println("Mishka");
        }else {
            System.out.println("Chris");
        }
    }
}


//package com.baba;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        int a = 0;
        int b = 0;
        for (int i = 0; i < n; i++) {
            int x = s.nextInt();
            int y = s.nextInt();
            if (x != y) {
                if (x > y) {
                    a++;
                } else {
                    b++;
                }
            }
        }
        if (a == b) {
            System.out.println("Friendship is magic!^^");
        } else if (a > b) {
            System.out.println("Mishka");
        } else {
            System.out.println("Chris");
        }
    }
}


import java.lang.*;
import java.util.*;
public class Game
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int p=0,a=0,b=0;
        while(p<n)
        {
            int m=sc.nextInt();
            int c=sc.nextInt();
            if(m>c)
            {
                a++;
            }
            else if(m<c)
            {
                b++;
            }
            else
            {

            }
            p++;
        }
        if(a>b)
        {
            System.out.println("Mishka");
        }
        else if(b>a)
        {
            System.out.println("Chris");
        }
        else
        {
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.lang.*;
import java.util.*;
public class Game
{
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int p=0,a=0,b=0;
        while(p<n)
        {
            int m=sc.nextInt();
            int c=sc.nextInt();
            if(m>c)
            {
                a++;
            }
            else if(m<c)
            {
                b++;
            }
            else
            {

            }
            p++;
        }
        if(a>b)
        {
            System.out.println("Mishika");
        }
        else if(b>a)
        {
            System.out.println("Chris");
        }
        else
        {
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {

   public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t=sc.nextInt();
        int sum1=0;
        int sum2=0;
        while (t-->=1){
            int n1=sc.nextInt();
            int n2=sc.nextInt();
            sum1+=n1;
            sum2+=n2;
        }
        if (sum1==sum2) System.out.println("Friendship is magic!^^");
        if (sum1>sum2) System.out.println("Mishka");
        if (sum1<sum2)System.out.println("Chris");

        }

        static void sort(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sortReverse(long[] a) {
        ArrayList<Long> l=new ArrayList<>();
        for (long i:a) l.add(i);
//        Collections.sort.(l);
        Collections.sort(l,Collections.reverseOrder());
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }

    static class FastScanner {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer("");
        String next() {
            while (!st.hasMoreTokens())
                try {
                    st=new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }
        int[] readArray(int n) {
            int[] a=new int[n];
            for (int i=0; i<n; i++) a[i]=nextInt();
            return a;
        }
        long nextLong() {
            return Long.parseLong(next());
        }
    }

}


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {

   public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t=sc.nextInt();
        int sum1=0;
        int sum2=0;
        while (t-->=1){
            int n1=sc.nextInt();
            int n2=sc.nextInt();
           if (n1>n2)sum1++;
           if (n1<n2)sum2++;
        }
        if (sum1==sum2) System.out.println("Friendship is magic!^^");
        if (sum1>sum2) System.out.println("Mishka");
        if (sum1<sum2)System.out.println("Chris");

        }

        static void sort(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sortReverse(long[] a) {
        ArrayList<Long> l=new ArrayList<>();
        for (long i:a) l.add(i);
//        Collections.sort.(l);
        Collections.sort(l,Collections.reverseOrder());
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }

    static class FastScanner {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer("");
        String next() {
            while (!st.hasMoreTokens())
                try {
                    st=new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }
        int[] readArray(int n) {
            int[] a=new int[n];
            for (int i=0; i<n; i++) a[i]=nextInt();
            return a;
        }
        long nextLong() {
            return Long.parseLong(next());
        }
    }

}


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
public class Main {

   public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t=sc.nextInt();
        int sum1=0;
        int sum2=0;
        while (t-->=1){
            int n1=sc.nextInt();
            int n2=sc.nextInt();
            sum1+=n1;
            sum2+=n2;
        }
        if (sum1==sum2) System.out.println("Friendship is magic!^^");
        if (sum1>sum2) System.out.println("Mishka");
        else System.out.println("Chris");

        }

        static void sort(int[] a) {
        ArrayList<Integer> l=new ArrayList<>();
        for (int i:a) l.add(i);
        Collections.sort(l);
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }
    static void sortReverse(long[] a) {
        ArrayList<Long> l=new ArrayList<>();
        for (long i:a) l.add(i);
//        Collections.sort.(l);
        Collections.sort(l,Collections.reverseOrder());
        for (int i=0; i<a.length; i++) a[i]=l.get(i);
    }

    static class FastScanner {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer("");
        String next() {
            while (!st.hasMoreTokens())
                try {
                    st=new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }
        int[] readArray(int n) {
            int[] a=new int[n];
            for (int i=0; i<n; i++) a[i]=nextInt();
            return a;
        }
        long nextLong() {
            return Long.parseLong(next());
        }
    }

}


import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n,i,j,m=0,c=0;
		n=s.nextInt();
		int a[][]=new int[n][2];
		for(i=0;i<n;i++)
	    	{
	    		for(j=0;j<2;j++)
	    			a[i][j]=s.nextInt();
	    	}
             for(i=0;i<n;i++)
             {
             	if(a[i][0]>a[i][1])
             	m++;
             	else
             	c++;
             }
             if(m>c)
             System.out.println("Mishka");
             else if(c>m)
             System.out.println("Chris");
             else
             System.out.println("Friendship is magic ! ^ ^");
	}
}


import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n,i,j,m=0,c=0;
		n=s.nextInt();
		int a[][]=new int[n][2];
		for(i=0;i<n;i++)
	    	{
	    		for(j=0;j<2;j++)
	    			a[i][j]=s.nextInt();
	    	}
             for(i=0;i<n;i++)
             {
             	if(a[i][0]>a[i][1])
             	m++;
             	else
             	c++;
             }
             if(m>c)
             System.out.println("Mishka");
             else if(c>m)
             System.out.println("Chris");
             else
             System.out.println("Friendship is magic!^^");
	}
}


import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n,i,j,m=0,c=0;
		n=s.nextInt();
		int a[][]=new int[n][2];
		for(i=0;i<n;i++)
	    	{
	    		for(j=0;j<2;j++)
	    			a[i][j]=s.nextInt();
	    	}
             for(i=0;i<n;i++)
             {
             	if(a[i][0]>a[i][1])
             	m++;
             	else
             	c++;
             }
             if(m>c)
             System.out.println("Mishka");
             else if(c>m)
             System.out.println("Chris");
             else
             System.out.println("Friendship is magic ! ^^");
	}
}


import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s=new Scanner(System.in);
		int n,i,j,m=0,c=0;
		n=s.nextInt();
		int a[][]=new int[n][2];
		for(i=0;i<n;i++)
	    	{
	    		for(j=0;j<2;j++)
	    			a[i][j]=s.nextInt();
	    	}
             for(i=0;i<n;i++)
             {
             	if(a[i][0]>a[i][1])
             	m++;
             	if(a[i][0]<a[i][1])
             	c++;
             }
             if(m>c)
             System.out.println("Mishka");
             else if(c>m)
             System.out.println("Chris");
             else
             System.out.println("Friendship is magic!^^");
	}
}


import java.io.*;
public class Temp {
	public static void main(String args[])throws IOException{
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		int rounds = Integer.parseInt(br.readLine().trim());
		int m=0, c=0;
		while(rounds!=0) {
			rounds--;
			String round[] = br.readLine().split(" ");
			int mi=Integer.parseInt(round[0]);
			int ch=Integer.parseInt(round[1]);
			if(mi>ch) {
				m++;
			}else if(mi<ch){
				c++;
			}
		}
		if(m>c) {
			System.out.println("Mishka");
		}else if(m<c) {
			System.out.println("Chris");
		}else {
			System.out.println("Friendship is magic!^^");
		}
	}
}


import java.util.*;
public final class codeforces{
    public static void main(String args[]){
        int n,msum=0,csum=0;
        Scanner sc=new Scanner(System.in);
        n=sc.nextInt(); //no. of rounds
        int m[]=new int[n];
        int c[]=new int[n];
        for(int i=0;i<n;i++){
            m[i]=sc.nextInt();
            c[i]=sc.nextInt();
            msum=msum+m[i];
            csum=csum+c[i];
        }
        if(msum>csum){
            System.out.println("Mishka");
        }
        else if(csum>msum){
            System.out.println("Chris");
        }
        else{
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.*;
public final class codeforces{
    public static void main(String args[]){
        int n,msum=0,csum=0;
        Scanner sc=new Scanner(System.in);
        n=sc.nextInt(); //no. of rounds
        int m[]=new int[n];
        int c[]=new int[n];
        for(int i=0;i<n;i++){
            m[i]=sc.nextInt();
            c[i]=sc.nextInt();
            if(m[i]>c[i]){
                msum++;
            }
            else if(c[i]>m[i]){
                csum++;
            }
        }
        if(msum>csum){
            System.out.println("Mishka");
        }
        else if(csum>msum){
            System.out.println("Chris");
        }
        else{
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.*;
public class mishka {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		int n,c=0,c1=0;
		n=in.nextInt();
		for(int i=1;i<=n;i++)
		{
			int a,b;
			a=in.nextInt();
			b=in.nextInt();
			if(a>b)
			{
				c++;
			}
			else if(a<b)
			{
				c1++;
			}
		}
		if(c>c1)
		{
			System.out.println("Mishka");
		}
		else if(c<c1)
		{
			System.out.println("Chris");
		}
		else
		{
			System.out.println("Friendship is magic!^^");
		}
	}
}


import java.util.*;
public class java
{
    public static void main(String args[])
    {
        Scanner in=new Scanner(System.in);
        int n,i;
        n=in.nextInt();
        for(i=1;i<=n;i++)
        {
            int m1,c1,c=0,c1=0;
            m1=in.nextInt();
            c1=in.nextInt();
            if(m1>c1)
            {
                c=c+1;
            }
            else if(m1<c1)
            {
                c1=c1+1;
            }
        }
            if(c>c1)
            {
                System.out.println("Mishka");
            }
            else if(c<c1)
            {
                System.out.println("Chris");
            }
            else if(c==c1)
            {
                System.out.println("Friendship is magic!^^");
            }
    }
}


import java.util.*;
import java.lang.*;

public class Solution{
    public static void main(String args[]){

        Scanner scan = new Scanner(System.in);
        int games = scan.nextInt();
        int mishkawon=0,chriswon=0;
        for(int i=0;i<games;i++){
            int mishka = scan.nextInt();
            int chris = scan.nextInt();
            if(mishka>chris) mishkawon++;
            if(chris>mishka) chriswon++;
        }
        if(mishkawon>chriswon){
            System.out.println("Mishka");
        }
        else if(chriswon>mishkawon){
            System.out.println("Chris");

        }
        else{
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.*;
import java.lang.*;

public class Solution{
    public static void main(String args[]){

        Scanner scan = new Scanner(System.in);
        int games = scan.nextInt();
        int mishkawon=0,chriswon=0;
        for(int i=0;i<games;i++){
            int mishka = scan.nextInt();
            int chris = scan.nextInt();
            if(mishka>chris) mishkawon++;
            if(chris>mishka) chriswon++;
        }
        if(miskawon>chriswon){
            System.out.println("Mishka");
        }
        else if(chriswon>mishkawon){
            System.out.println("Chris");

        }
        else{
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.*;

public class Game{

    public static void main(String[] args)
    {
        Scanner sc=new Scanner(System.in);
        int t=sc.nextInt();

        int m,c;
        m=c=0;
        for(int i=0;i<t;i++)
        {
            int a=sc.nextInt();
            int b=sc.nextInt();

            if(a>b)
              m++;

            else if(b>a)
                c++;

            else
            continue;
        }
        if(m>c)
          System.out.println("Mishka");

        else if(m<c)
           System.out.println("Chris");

        else
           System.out.println("Friendship is magic!^^");

    }
}


import java.util.*;

public class main{

    public static void main(String[] args)
    {
        Scanner sc=new Scanner(System.in);
        int t=sc.next;

        int m,c;
        m=c=0;
        for(int i=0;i<t;i++)
        {
            int a=sc.nextInt();
            int b=sc.nextInt();

            if(a>b)
              m++;

            else if(b>a)
                c++;

            else
            continue;
        }
        if(m>c)
          System.out.println("Mishka");

        else if(m<c)
           System.out.println("Chris");

        else
           System.out.println("Friendship is magic!^^");

    }
}


import java.util.Scanner;

public final class codeforces {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt(), scoreM = 0, scoreC = 0;

        for (int j = 0; j < n; ++j) {
            int m = in.nextInt(), c = in.nextInt();
            if (m > c)
                scoreM++;
            else
                scoreC++;
        }

        System.out.println(scoreM > scoreC ? "Mishka" : scoreM == scoreC ? "Friendship is magic!^^" : "Chris");

        in.close();
    }
}


import java.util.Scanner;

public final class codeforces {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt(), scoreM = 0, scoreC = 0;

        for (int j = 0; j < n; ++j) {
            int m = in.nextInt(), c = in.nextInt();
            if (m > c)
                scoreM++;
            else if (c > m)
                scoreC++;
        }

        System.out.println(scoreM > scoreC ? "Mishka" : scoreM == scoreC ? "Friendship is magic!^^" : "Chris");

        in.close();
    }
}


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;

//Your code goes here
public class Main {

	static class ProblemSolver{
		public void solveTheProblem(InputReader in,PrintWriter out){

			//Declare all the necessary variables
			int n=in.nextInt();//no of turns
			int m=0,c=0;//m to be incremented in Mishka wins and c if Chris wins

			//Calculation of number of wins
			/*
			 * Note:-
			 * 	- Declaring a variable inside the for loop is memory efficient
			 *    so it is recommended use this style of declaration whereever possible
			 */
			for(int i=1;i<=n;++i){
				int M,C;
				M=in.nextInt();
				C=in.nextInt();
				if(M>C)++m;
				else if(M<C)++c;
				else continue;
			}

			//Display the result
			if(m>c)System.out.println("Mishka");
			else if(c>m)System.out.println("Chris");
			else System.out.println("Friendship is magic!^^");
		}
	}

	//Default template for all the codes
	static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream),32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }

	//Template.Main method for all the codes
	public static void main(String[] args) {
		InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
		ProblemSolver problemSolver = new ProblemSolver();
		problemSolver.solveTheProblem(in, out);
		out.close();
	}

}


import java.util.Scanner;

public class MishkaAndGame_703A {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int m = 0;
        int c = 0;
        int n = s.nextInt();
        for(int i=0; i<n; i++){
            int a = s.nextInt();
            int b = s.nextInt();
            if(a>b){
                m++;
            }
            else if(b>a){
                c++;
            }
        }
        if(m>c){
            System.out.println("Mishka");
        }
        else if(c>m){
            System.out.println("Chris");
        }
        else{
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.Scanner;

public class MishkaAndGame_703A {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int m = 0;
        int c = 0;
        int n = s.nextInt();
        for(int i=0; i<n; i++){
            int a = s.nextInt();
            int b = s.nextInt();
            if(a>b){
                m++;
            }
            else if(b>a){
                c++;
            }
        }
        if(m>c){
            System.out.println("Mishka");
        }
        else if(c>m){
            System.out.println("Mishka");
        }
        else{
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.*;
public class file {

	public static void main(String[] args) {

		Scanner s =  new Scanner(System.in);
	        	int n = s.nextInt();
	        	int mwins = 0;
	        	int cwins = 0;
	        	for(int i = 0 ; i <n ; i++) {
	        		int m = s.nextInt();
	        		int c = s.nextInt();

	        		if(m>c) {
	        			mwins++;
	        		}else if (c>m) {
	        			cwins++;
	        		}
	        	}
	        	System.out.println(mwins>cwins ? "Mishka" : cwins>mwins ? "Chris" : "Friendship is magic!^^" );

		}

				}


import java.util.Scanner;
public class Mishika {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int nc = 0,cc = 0;
        while(m-- > 0) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            if(a > b) {
                nc++;
            } else if(a < b) {
                cc++;
            }
        }
        if(nc > cc) {
            System.out.println("Mishka");
        } else if(nc < cc) {
            System.out.println("Chris");
        } else {
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.Scanner;
public class MishikaAndGame{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int mc = 0,c = 0;
        while(n-- >0){
            int a = sc.nextInt();
            int b = sc.nextInt();
            if(a>b){
                mc++;
            }
            else if(a<b){
                c++;
            }
        }
        if(mc>c){
            System.out.println("Mishika");
        }
        else if(mc < c){
             System.out.println("Chris");
        } else {
             System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.Scanner;

public class MishkaandGame {

    public static void main(String[] args) {

         Scanner input=new Scanner(System.in);

         int n=input.nextInt();

         int x[]=new int[n];
         int y[]=new int[n];

         for (int i = 0; i < n; i++) {
            x[i]=input.nextInt();
            y[i]=input.nextInt();
        }
         int count1=0;
         int count2=0;

         for (int i = 0; i < n; i++) {

             if(x[i]>y[i])
             {
                 count1++;
             }
             else
             {
                 count2++;
             }

        }

         if(count1>count2)
             System.out.println("Mishka");
         else if(count1<count2)
             System.out.println("Chris");
         else if(count1==count2)
             System.out.println("Friendship is magic!^^");

    }

}


import java.util.Scanner;

public class MishkaandGame {

    public static void main(String[] args) {

         Scanner input=new Scanner(System.in);

         int n=input.nextInt();

         int x[]=new int[n];
         int y[]=new int[n];

         for (int i = 0; i < n; i++) {
            x[i]=input.nextInt();
            y[i]=input.nextInt();
        }
         int sum1=0;
         int sum2=0;

         for (int i = 0; i < n; i++) {

             sum1=sum1+x[i];
             sum2=sum2+y[i];

        }
         if(sum1>sum2)
             System.out.println("Mishka");
         else if(sum1<sum2)
             System.out.println("Chris");
         else if(sum1==sum2)
             System.out.println("Friendship is magic!^^");

    }

}


import java.util.Scanner;

public class MishkaandGame {

    public static void main(String[] args) {

         Scanner input=new Scanner(System.in);

         int n=input.nextInt();

         int x[]=new int[n];
         int y[]=new int[n];

         for (int i = 0; i < n; i++) {
            x[i]=input.nextInt();
            y[i]=input.nextInt();
        }
         int count1=0;
         int count2=0;

         for (int i = 0; i < n; i++) {

             if(x[i]>y[i])
             {
                 count1++;
             }
             else if(x[i]<y[i])
             {
                 count2++;
             }

        }

         if(count1>count2)
             System.out.println("Mishka");
         else if(count1<count2)
             System.out.println("Chris");
         else if(count1==count2)
             System.out.println("Friendship is magic!^^");

    }

}


import java.util.*;
public class Pb34 {
public static void main(String[] args) {
	Scanner in = new Scanner(System.in);
	int n= in.nextInt();
	int m[]=new int[n];
	int c[]=new int[n];
	for (int i = 0; i < c.length; i++) {
	m[i]=in.nextInt();
	c[i]=in.nextInt();
	}
	int mcnt=0,ccnt=0;
	for (int i = 0; i < c.length; i++) {
		if(m[i]>c[i])
			mcnt++;
		else
			ccnt++;
	}
	if(mcnt>ccnt)
		System.out.println("Mishka");
	else if(mcnt<ccnt)
		System.out.println("Chris");
	else
		System.out.println("Friendship is magic!^^");
}
}


import java.util.*;
public class Pb34 {
public static void main(String[] args) {
	Scanner in = new Scanner(System.in);
	int n= in.nextInt();
	int m[]=new int[n];
	int c[]=new int[n];
	for (int i = 0; i < n; i++) {
	m[i]=in.nextInt();
	c[i]=in.nextInt();
	}
	int mcnt=0,ccnt=0;
	for (int i = 0; i < n; i++) {
		if(m[i]>c[i])
		{
			mcnt++;}
		else if(c[i]>m[i])
			{ccnt++;}
	}

	if(mcnt>ccnt)
		System.out.println("Mishka");
	else if(mcnt<ccnt)
		System.out.println("Chris");
	else
		System.out.println("Friendship is magic!^^");
}
}


import java.util.Scanner;
public class Mishika {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int ncount = 0,ccount = 0;
        while(m-- > 0) {
            int c = sc.nextInt();
            int d = sc.nextInt();
            if(c > d) {
                ncount++;
            } else if(c < d) {
                ccount++;
            }
        }
        if(ncount > ccount) {
            System.out.println("Mishka");
        } else if(ncount < ccount) {
            System.out.println("Chris");
        } else {
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.Scanner;
public class Mishika {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int ncount = 0,ccount = 0;
        while(m-- > 0) {
            int c = sc.nextInt();
            int d = sc.nextInt();
            if(c > d) {
                ncount++;
            } else if(c < d) {
                ccount++;
            }
        }
        if(ncount > ccount) {
            System.out.println("Mishika");
        } else if(ncount < ccount) {
            System.out.println("Chris");
        } else {
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.Scanner;
public class Compare {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int mishkaCount = 0, chrisCount = 0;
    for (int i = 0; i < n; i++) {
      int m = scan.nextInt();
      int c = scan.nextInt();
      if (c < m) {
        mishkaCount++;
      }
      else if (m < c) {
        chrisCount++;
      }
      else {
        break;
      }
    }
    if (chrisCount < mishkaCount) {
      System.out.println("Mishka");
    }
    else if (mishkaCount < chrisCount) {
      System.out.println("Chris");
    }
    else {
      System.out.println("Friendship is magic!^^");
    }
  }
}


import java.util.Scanner;
public class Compare {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int mishkaCount = 0, chrisCount = 0;
    for (int i = 0; i < n; i++) {
      int m = scan.nextInt();
      int c = scan.nextInt();
      if (c < m) {
        mishkaCount++;
      }
      else if (m < c) {
        chrisCount++;
      }
      else {
        return;
      }
    }
    if (chrisCount < mishkaCount) {
      System.out.println("Mishka");
    }
    else if (mishkaCount < chrisCount) {
      System.out.println("Chris");
    }
    else {
      System.out.println("Friendship is magic!^^");
    }
  }
}


import java.util.Scanner;
public class Compare {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int mishkaCount = 0, chrisCount = 0;
    for (int i = 0; i < n; i++) {
      int m = scan.nextInt();
      int c = scan.nextInt();
      if (c < m) {
        mishkaCount++;
      }
      else if (m < c) {
        chrisCount++;
      }
    }
    if (chrisCount < mishkaCount) {
      System.out.println("Mishka");
    }
    else if (mishkaCount < chrisCount) {
      System.out.println("Chris");
    }
    else {
      System.out.println("Friendship is magic!^^");
    }
  }
}


// Codeforces 703A
import java.util.Scanner;

public class CF703A {
    static final Scanner SC = new Scanner(System.in);
    public static void main(String[] args) {
        int rounds = SC.nextInt();
        int[] MishkaThrow = new int[rounds];
        int[] ChrisThrow = new int[rounds];
        for (int r = 0; r < rounds; ++r) {
            MishkaThrow[r] = SC.nextInt();
            ChrisThrow[r] = SC.nextInt();
        }
        String result = getResult(MishkaThrow, ChrisThrow);
        System.out.println(result);
    }

    // Gets Result-string based on who wins, computed using MishkaThrow and ChrisThrow
    static String getResult(int[] MishkaThrow, int[] ChrisThrow) {
        int roundsMishkaWins = 0;
        int roundsChrisWins = 0;
        for (int i = 0; i < MishkaThrow.length; ++i)
            if (MishkaThrow[i] > ChrisThrow[i])
                roundsMishkaWins += 1;
            else if (MishkaThrow[i] < ChrisThrow[i])
                roundsChrisWins += 1;
        if (roundsMishkaWins > roundsChrisWins)
            return "Mishka";
        else if (roundsChrisWins > roundsMishkaWins)
            return "Chris";
        else
            return "Friendship is magic!^^";
    }
}


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int n,a,b;
        int m=0,x=0;
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        for (int i=0; i<n; i++){
            a= sc.nextInt();
            b= sc.nextInt();
            if(a>b)
                m++;
            if(a<b)
                x++;

        }
        if(m>x)
            System.out.print("Mishka");

        else if(m<x)
            System.out.print("Chris");

        else
            System.out.print("Friendship is magic!^^");

        }
    }


import java.util.*;

public class Main {

    static final int NO_OF_CHARS = 256;
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // write your code here
        long n = scanner.nextLong(), mishka = 0, chris = 0;

        for (int i = 0; i < n; i++)
        {
            long a = scanner.nextLong();
            long b = scanner.nextLong();

            if(a > b)
            {
                mishka++;
            } else if(a < b)
            {
                chris++;
            }
        }
        if(mishka > chris)
        {
            System.out.println("Mishka");
        } else if(mishka < chris)
        {
            System.out.println("Chris");
        }else {
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.*;

public class Main {

    static final int NO_OF_CHARS = 256;
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // write your code here
        long n = scanner.nextLong(), mishka = 0, chris = 0;

        for (int i = 0; i < n; i++)
        {
            mishka += scanner.nextLong();
            chris += scanner.nextLong();
        }
        if(mishka > chris)
        {
            System.out.println("Mishka");
        } else if(mishka < chris)
        {
            System.out.println("Chris");
        }else {
            System.out.println("Friendship is magic!^^");
        }
    }
}


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final int roundNumber = scanner.nextInt();

        int mishkaWins = 0;
        int chrisWins = 0;

        for (int i = 0; i < roundNumber; i++) {
            int mishkaThrow = scanner.nextInt();
            int chrisThrow = scanner.nextInt();

            if (mishkaThrow > chrisThrow) mishkaWins++;
            if (mishkaThrow < chrisThrow) chrisWins++;
            if (mishkaThrow == chrisThrow) {
                chrisWins++;
                mishkaWins++;
            }
        }
        if (mishkaWins == chrisWins) System.out.println("Friendship is magic!^^");
        if (mishkaWins < chrisWins) System.out.println("Chriss");
        if (mishkaWins > chrisWins) System.out.println("Mishka");
    }
}


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        final int roundNumber = scanner.nextInt();

        int mishkaWins = 0;
        int chrisWins = 0;

        for (int i = 0; i < roundNumber; i++) {
            int mishkaThrow = scanner.nextInt();
            int chrisThrow = scanner.nextInt();

            if (mishkaThrow > chrisThrow) mishkaWins++;
            if (mishkaThrow < chrisThrow) chrisWins++;
            if (mishkaThrow == chrisThrow) {
                chrisWins++;
                mishkaWins++;
            }
        }
        if (mishkaWins == chrisWins) System.out.println("Friendship is magic!^^");
        if (mishkaWins < chrisWins) System.out.println("Chris");
        if (mishkaWins > chrisWins) System.out.println("Mishka");
    }
}


import com.sun.source.tree.Tree;

import java.lang.reflect.Array;
import java.util.*;
import java.lang.*;

import java.util.regex.Pattern;

public class Example {

    public static int Max(int[] x)
    {
        int max=x[0];
        for(int i=1;i<x.length;i++)
        {
            if(x[i]>max)max=x[i];
        }
        return max;

    }

    public static int partition(int[] arr, int start, int end){
        int pivot = arr[end];

        for(int i=start; i<end; i++){
            if(arr[i]<pivot){
                int temp= arr[start];
                arr[start]=arr[i];
                arr[i]=temp;
                start++;
            }
        }

        int temp = arr[start];
        arr[start] = pivot;
        arr[end] = temp;

        return start;
    }
    public static void quickSort(int[] arr, int start, int end){

        int partition = partition(arr, start, end);

        if(partition-1>start) {
            quickSort(arr, start, partition - 1);
        }
        if(partition+1<end) {
            quickSort(arr, partition + 1, end);
        }
    }
   public static boolean Permutation(int[] p)
   {
       boolean[] temp= new boolean[p.length];
       Arrays.fill(temp, false);
       for(int i=0;i<p.length;i++)
       {
           for(int j=0;j<p.length;j++)
           {
               if(p[i]==j)
               {
                   temp[j]=true;
                   break;
               }
           }
       }
       for(int j=0;j<p.length;j++)
       {
           if(!temp[j]) return false;
       }
       return true;
   }
   public static long Count(long n)
   {
       long count=0;
       if (n>=100)
       {
           count=count+n/100;
           n=n -(n/100)*100;
       }
       if(n>=20)
       {
           count=count+n/20;
           n=n-(n/20)*20;
       }
       if(n>=10)
       {
           count=count+n/10;
           n=n-(n/10)*10;
       }
       if(n>=5)
       {
           count=count+n/5;
           n=n-(n/5)*5;
       }
       count=count+n;
       return count;

   }
   public static long Min(long[] x)
   {
       long min=x[0];
       for(int i=1;i<x.length;i++)
       {
           if(x[i]<min)min=x[i];
       }
       return min;
   }
    public static int Ribbon(int[] x,int n)
    {
        int max=0;
        for(int i=n/x[0];i>=0;i--)
        {
            for (int j=0;j<=n/x[1];j++)
            {
                int k=n-(i*x[0] +j*x[1]);
                if(k%x[2]==0&&k>=0)
                {
                    int temp=k/x[2];
                    if ((i+j+temp)>max)max=i+j+temp;
                }

            }
        }
        return max;
    }
    public static boolean Prime(int n)
    {
        if(n==1) return false;
        if(n==2||n==3) return true;
        for(int i=2;i<=Math.sqrt((double) n);i++)
        {
            if(n%i==0) return false;
        }
        return true;
    }
    public static int Sum(ArrayList n)
    {
        int count=0;
        for(int i=0;i<n.size();i++)
        {
           int a=Integer.parseInt(n.get(i).toString());
           count=count+a;
        }
        return count;
    }
    public static int Pow(int n, int i)
    {
        int temp=n;
        if(i==0) return 1;
        else if(i==1) return n;
        for(int j=0;j<i-1;j++)
        {
            n=n*temp;
        }
        return n;
    }
    public static int Candies(int n)
    {
        int sum=0;
        int i=0;
        while (true)
        {
            sum=sum+Pow(2,i);
            if(n%sum==0&&i!=0)
            {
                sum=n/sum;
                break;
            }
            i++;
        }
        return sum;
    }
    public static int Swap(int[] a, int[] b, int n, int k)
    {
        int s=0;
        Arrays.sort(a);
        Arrays.sort(b);
        int x=n-1;
        for(int i=0;i<k;i++)
        {
            if(a[i]<b[x])
            {
                int temp=a[i];
                a[i]=b[x];
                b[x]=temp;
                x--;
            }
        }
        for(int i=0;i<n;i++)
        {
            s=s+a[i];
        }
        return s;
    }
    public static void main(String[] args) {
       int n;
       int a,b;
       int m=0,c=0;
       Scanner sc= new Scanner(System.in);
       n=sc.nextInt();
       for(int i=0;i<n;i++)
       {
           a=sc.nextInt();
           b=sc.nextInt();
           if(a>b)m++;
           if(a<b)c++;
       }
       if(m>c) System.out.println("Mishka");
       else if(m<c) System.out.print("Chris");
       else System.out.print("Friendship is magic!^^");
    }
}


import java.util.*;
import static java.lang.System.out;

import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class Main
{

	static int mod = 1000000007;
	static final long M = (int)1e9+7;

	static class Reader
	{
		final private int BUFFER_SIZE = 1 << 16;
		private DataInputStream din;
		private byte[] buffer;
		private int bufferPointer, bytesRead;

		public Reader()
		{
			din = new DataInputStream(System.in);
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public Reader(String file_name) throws IOException
		{
			din = new DataInputStream(new FileInputStream(file_name));
			buffer = new byte[BUFFER_SIZE];
			bufferPointer = bytesRead = 0;
		}

		public String next() throws IOException
		{
			byte[] buf = new byte[64]; // line length
			int cnt = 0, c;
			while ((c = read()) != -1)
			{
				if (c == '\n')
					break;
				buf[cnt++] = (byte) c;
			}
			return new String(buf, 0, cnt);
		}

		public int nextInt() throws IOException
		{
			int ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do
			{
				ret = ret * 10 + c - '0';
			} while ((c = read()) >= '0' && c <= '9');

			if (neg)
				return -ret;
			return ret;
		}
		int[] readArray(int n) throws IOException {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}

		public long nextLong() throws IOException
		{
			long ret = 0;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();
			do {
				ret = ret * 10 + c - '0';
			}
			while ((c = read()) >= '0' && c <= '9');
			if (neg)
				return -ret;
			return ret;
		}

		public double nextDouble() throws IOException
		{
			double ret = 0, div = 1;
			byte c = read();
			while (c <= ' ')
				c = read();
			boolean neg = (c == '-');
			if (neg)
				c = read();

			do {
				ret = ret * 10 + c - '0';
			}
			while ((c = read()) >= '0' && c <= '9');

			if (c == '.')
			{
				while ((c = read()) >= '0' && c <= '9')
				{
					ret += (c - '0') / (div *= 10);
				}
			}

			if (neg)
				return -ret;
			return ret;
		}

		private void fillBuffer() throws IOException
		{
			bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
			if (bytesRead == -1)
				buffer[0] = -1;
		}

		private byte read() throws IOException
		{
			if (bufferPointer == bytesRead)
				fillBuffer();
			return buffer[bufferPointer++];
		}

		public void close() throws IOException
		{
			if (din == null)
				return;
			din.close();
		}

	}

	public static boolean isPrime(int n) {
		if(n == 1)
		{
			return false;
		}
		for(int i = 2;i*i<=n;i++)
		{
			if(n%i == 0)
			{
				return false;
			}
		}
		return true;
	}

	public static int gcd(int a, int b)
	{
		if(b == 0)
		 return a;

		else
		return gcd(b,a%b);
	}

	public static int[] computePrefix(int arr[], int n)
	{
		int[] prefix = new int[n];
		prefix[0] = arr[0];
		for(int i = 1;i<n;i++)
		{
			prefix[i] = prefix[i-1]+arr[i];
		}

		return prefix;
	}

	public static int lcm(int a, int b)
	{
		return (a*b)/gcd(a,b);
	}

	public static int phi(int n)  //euler totient function
    {
        int result = 1;
        for (int i = 2; i < n; i++)
            if (gcd(i, n) == 1)
                result++;
        return result;
    }

	public static int check(int n)
	{
		int cl = 0;
		while(n > 0)
		{
			if(n%10 == 4 || n%10 == 7)
			{
				cl++;
				n/=10;
			}
		}

		return cl;
	}

	public static boolean digCheck(int n)
	{
		int cond1 = 7, cond2 = 4;
		while(n > 0)
		{
			if(n%10 == cond1 || n%10 == cond2)
			{
				return true;
			}
			n/=10;
		}
		return false;
	}

	public static int[] Sort(int arr[])
	{

		//Heap Sort!!!
		PriorityQueue<Integer> pq = new PriorityQueue<>();
		for(int i : arr)
		{
			pq.add(i);
		}

		for(int i = 0;i < arr.length;i++)
		{
			arr[i] = pq.poll();
		}

		return arr;
	}

	public static void main(String[] args) throws IOException
	{
		Reader sc=new Reader();

		int n = sc.nextInt();
		int count1 = 0,count2 = 0;

		while(n-- > 0)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();

			if(a < b)
			{
				count2++;
			}
			else if(a > b)
			{
				count1++;
			}
		}

		if(count1 > count2)
		{
			System.out.println("Mishka");
		}
		else if(count1 < count2)
		{
			System.out.println("Chris");
		}
		else if(count1 == count2)
		{
			System.out.println("Friendship is magic!^^");
		}

	}
}


import java.util.*;
public class Main
{
	public static void main(String[] args)
	{
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int i,m=0,c=0,p=0;
		for(i=0;i<n;i++)
		{
		    m=s.nextInt();
		    c=s.nextInt();
		    if(m>c)
		        p++;
		    else if(m<c)
		        p--;
		}
		if(p==0)
		    System.out.println("Friendship is magic!^^");
		else if(p>0)
		    System.out.println("Mishka");
		else
		    System.out.println("Chris");

	}
}


import java.util.*;
public class Main
{
	public static void main(String[] args)
	{
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int i,m=0,c=0,ms=0,,cs=0;
		for(i=0;i<n;i++)
		{
		    m=s.nextInt();
		    c=s.nextInt();
		    if(m>c)
		        ms++;
		    else
		        cs++;;
		}
		if(ms==cs)
		    System.out.println("Friendship is magic!^^");
		else if(ms>cs)
		    System.out.println("Mishka");
		else
		    System.out.println("Chris");

	}
}


import java.util.*;
public class Main
{
	public static void main(String[] args)
	{
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int i,m=0,c=0,p=0;
		for(i=0;i<n;i++)
		{
		    m=s.nextInt();
		    c=s.nextInt();
		    if(m>c)
		        p++;
		    else
		        p--;
		}
		if(p==0)
		    System.out.println("Friendship is magic!^^");
		else if(p>0)
		    System.out.println("Mishka");
		else
		    System.out.println("Chris");

	}
}


import java.util.*;
public class Main
{
	public static void main(String[] args)
	{
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int i,m=0,c=0,p=0;
		for(i=0;i<n;i++)
		{
		    m=s.nextInt();
		    c=s.nextInt();
		    if(m>c)
		        p++;
		    else
		        p--;
		}
		if(p==0)
		    System.out.println("Friendship is magic!^^");
		else if(m>c)
		    System.out.println("Mishka");
		else
		    System.out.println("Chris");

	}
}


import java.util.*;
public class Main
{
	public static void main(String[] args)
	{
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int i,m=0,c=0,ms=0,cs=0;
		for(i=0;i<n;i++)
		{
		    m=s.nextInt();
		    c=s.nextInt();
		    if(m>c)
		        ms++;
		    else
		        cs++;;
		}
		if(ms==cs)
		    System.out.println("Friendship is magic!^^");
		else if(ms>cs)
		    System.out.println("Mishka");
		else
		    System.out.println("Chris");

	}
}


package com.company;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
//        ArrayList<Integer> list = new ArrayList<>();
//        LinkedList<Integer> linkedList = new LinkedList<>();
//        StringBuilder stringBuilder = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int[] array = new int[x];
        int[] arra2 = new int[x];

        for(int i = 0 ; i<x ; i++){
            array[i] = scanner.nextInt();
            arra2[i] = scanner.nextInt();
        }
        int k =  0 ;
        int j  = 0;
        for(int i = 0;  i<x;i++){
            if(array[i]<arra2[i]){
                j++;
            }
            else if(array[i]>arra2[i]){
                k++;
            }
        }
        if(j==k){
            System.out.println("Friendship is magic!^^");
        }else {
            if (j > k) {
                System.out.println("Chris");
            } else {
                System.out.println("Mishka");
            }
        }
    }

}


//package com.company;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
//        ArrayList<Integer> list = new ArrayList<>();
//        LinkedList<Integer> linkedList = new LinkedList<>();
//        StringBuilder stringBuilder = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int[] array = new int[x];
        int[] arra2 = new int[x];

        for(int i = 0 ; i<x ; i++){
            array[i] = scanner.nextInt();
            arra2[i] = scanner.nextInt();
        }
        int k =  0 ;
        int j  = 0;
        for(int i = 0;  i<x;i++){
            if(array[i]<arra2[i]){
                j++;
            }
            else if(array[i]>arra2[i]){
                k++;
            }
        }
        if(j==k){
            System.out.println("Friendship is magic!^^");
        }else {
            if (j > k) {
                System.out.println("Chris");
            } else {
                System.out.println("Mishka");
            }
        }
    }

}


//package com.company;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
//        ArrayList<Integer> list = new ArrayList<>();
//        LinkedList<Integer> linkedList = new LinkedList<>();
//        StringBuilder stringBuilder = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int[] array = new int[3];
        int[] arra2 = new int[3];

        for(int i = 0 ; i<x;i++){
            array[i] = scanner.nextInt();
            arra2[i] = scanner.nextInt();
        }
        int k =  0 ;
        int j  = 0;
        for(int i = 0;  i<x;i++){
            if(array[i]<arra2[i]){
                j++;
            }
            else if(array[i]>arra2[i]){
                k++;
            }
        }
        if(j==k){
            System.out.println("Friendship is magic!^^");
        }else {
            if (j > k) {
                System.out.println("Chris");
            } else {
                System.out.println("Mishka");
            }
        }
    }

}


//package com.company;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
//        ArrayList<Integer> list = new ArrayList<>();
//        LinkedList<Integer> linkedList = new LinkedList<>();
//        StringBuilder stringBuilder = new StringBuilder();
        Scanner scanner = new Scanner(System.in);
        int x = scanner.nextInt();

        int[] array = new int[3];
        int[] arra2 = new int[3];

        for(int i = 0 ; i<x;i++){
            array[i] = scanner.nextInt();
            arra2[i] = scanner.nextInt();
        }
        int k =  0 ;
        int j  = 0;
        for(int i = 0;  i<3;i++){
            if(array[i]<arra2[i]){
                j++;
            }
            else if(array[i]>arra2[i]){
                k++;
            }
        }
        if(j==k){
            System.out.println("Friendship is magic!^^");
        }else {
            if (j > k) {
                System.out.println("Chris");
            } else {
                System.out.println("Mishka");
            }
        }
    }

}


import java.io.IOException;
import java.util.Scanner;

public class BM {

//	BufferedReader br;
//	StringTokenizer st;
//	BM()
//	{
//		br = new BufferedReader(new InputStreamReader(System.in));
//	}
//	String next() throws IOException
//	{
//		while(st == null || !st.hasMoreTokens())
//			st = new StringTokenizer(br.readLine());
//		return st.nextToken();
//	}
//	int nextInt() throws IOException
//	{
//		return Integer.parseInt(next());
//	}

	public static void main(String[] args) throws IOException {

//		BM sc = new BM();
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int w1 = 0;
		int w2 = 0;
		while(n-- >0)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(a > b)w1++;
			else if(a<b)w2++;
		}
		if(w1 ==  w2)
			System.out.println("Friendship is magic!^^");
		else if(w1 > w2)
			System.out.println("Mishka");
		else
			System.out.println("Chris");

	}
}


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class BM {

	BufferedReader br;
	StringTokenizer st;
	BM()
	{
		br = new BufferedReader(new InputStreamReader(System.in));
	}
	String next() throws IOException
	{
		while(st == null || !st.hasMoreTokens())
			st = new StringTokenizer(br.readLine());
		return st.nextToken();
	}
	int nextInt() throws IOException
	{
		return Integer.parseInt(next());
	}

	public static void main(String[] args) throws IOException {

		BM sc = new BM();
		int n = sc.nextInt();
		int w1 = 0;
		int w2 = 0;
		while(n-- >0)
		{
			int a = sc.nextInt();
			int b = sc.nextInt();
			if(a > b)w1++;
			else if(a<b)w2++;
		}
		if(w1 ==  w2)
			System.out.println("Friendship is magic!^^");
		else if(w1 > w2)
			System.out.println("Mishka");
		else
			System.out.println("Chris");

	}
}


import java.util.Scanner;
public class Mishka_and_Game {
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int no = sc.nextInt();
        sc.nextLine();
        int Msum = 0;
        int Csum = 0;
        while(no-->0)
        {
            String a[] = sc.nextLine().split(" ");
            if(Integer.parseInt(a[0])>Integer.parseInt(a[1]))
            {
                Msum++;
            }
            else if(Integer.parseInt(a[0])<Integer.parseInt(a[1]))
            {
                Csum++;
            }
        }
        if(Msum>Csum)
        {
            System.out.println("Mishka");
        }
        else if(Msum<Csum)
        {
            System.out.println("Chris");
        }
        else
        {
            System.out.println("Friendship is magic!^^");
        }

    }
}


import java.util.Scanner;
public class Mishka_and_Game {
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int no = sc.nextInt();
        sc.nextLine();
        int Msum = 0;
        int Csum = 0;
        while(no-->0)
        {
            String a[] = sc.nextLine().split(" ");
            Msum = Msum+Integer.parseInt(a[0]);
            Csum = Csum+Integer.parseInt(a[1]);
        }
        if(Msum>Csum)
        {
            System.out.println("Mishka");
        }
        else if(Msum<Csum)
        {
            System.out.println("Chris");
        }
        else
        {
            System.out.println("Friendship is magic!^^");
        }

    }
}


import java.util.Scanner;
public class Mishka_and_Game {
    public static void main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int no = sc.nextInt();
        sc.nextLine();
        int Msum = 0;
        int Csum = 0;
        while(no-->0)
        {
            String a[] = sc.nextLine().split(" ");
            if(Integer.parseInt(a[0])>Integer.parseInt(a[1]))
            {
                Msum++;
            }
            else
            {
                Csum++;
            }
        }
        if(Msum>Csum)
        {
            System.out.println("Mishka");
        }
        else if(Msum<Csum)
        {
            System.out.println("Chris");
        }
        else
        {
            System.out.println("Friendship is magic!^^");
        }

    }
}


import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		sc.nextLine();
		int miksha=0,chris=0;
		int[] m=new int[n];
		int[] c=new int[n];
		for(int i=0;i<n;i++) {
			m[i]=sc.nextInt();
			c[i]=sc.nextInt();
		}
		for(int i=0;i<n;i++) {
			if(m[i]>c[i])
				miksha++;
			if(c[i]>m[i])
				chris++;
		}
		if(miksha>chris)
		    System.out.println("Mishka");
		else if(miksha==chris)
			System.out.println("\"Friendship is magic!^^\" ");
		else
			System.out.println("Chris");
	}
}


import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		sc.nextLine();
		int miksha=0,chris=0;
		int[] m=new int[n];
		int[] c=new int[n];
		for(int i=0;i<n;i++) {
			m[i]=sc.nextInt();
			c[i]=sc.nextInt();
		}
		for(int i=0;i<n;i++) {
			if(m[i]>c[i])
				miksha++;
			if(c[i]>m[i])
				chris++;
		}
		if(miksha>chris)
		    System.out.println("Miksha");
		else if(miksha==chris)
			System.out.println("\"Friendship is magic!^^\" ");
		else
			System.out.println("Chris");
	}
}


import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		sc.nextLine();
		int miksha=0,chris=0;
		int[] m=new int[n];
		int[] c=new int[n];
		for(int i=0;i<n;i++) {
			m[i]=sc.nextInt();
			c[i]=sc.nextInt();
		}
		for(int i=0;i<n;i++) {
			if(m[i]>c[i])
				miksha++;
			if(c[i]>m[i])
				chris++;
		}
		if(miksha>chris)
		    System.out.println("Miksha");
		if(miksha==chris)
			System.out.println("\"Friendship is magic!^^\" ");
		else
			System.out.println("Chris");
	}
}


import java.util.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		sc.nextLine();
		int miksha=0,chris=0;
		int[] m=new int[n];
		int[] c=new int[n];
		for(int i=0;i<n;i++) {
			m[i]=sc.nextInt();
			c[i]=sc.nextInt();
		}
		for(int i=0;i<n;i++) {
			if(m[i]>c[i])
				miksha++;
			if(c[i]>m[i])
				chris++;
		}
		if(miksha>chris)
		    System.out.println("Mishka");
		else if(miksha==chris)
			System.out.println("Friendship is magic!^^ ");
		else
			System.out.println("Chris");
	}
}


import java.util.*;
import java.io.*;
import java.util.stream.*;

public class Main{
	private static BufferedReader in;
	private static BufferedWriter out;

	public static void main(String[] args) throws IOException {
		open();

		StringTokenizer st;
		StringBuilder sb;

		int n=readInt();
		int ans=0;
		int a,b;
		while(n-->0) {
			st=new StringTokenizer(readString());
			a=Integer.parseInt(st.nextToken());
			b=Integer.parseInt(st.nextToken());
			if(a>b)
				ans++;
			else if(a<b)
				ans--;
		}
		if(ans==0)
			out.write("Friendship is magic!^^\n");
		else if(ans>0)
			out.write("Mishka\n");
		else
			out.write("Chris\n");

		close();
	}

	private static int[] readInts() throws IOException {
		return Stream.of(in.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
	}

	private static int readInt() throws IOException {
		return Integer.parseInt(in.readLine());
	}

	private static long[] readLongs() throws IOException {
		return Stream.of(in.readLine().split(" ")).mapToLong(Long::parseLong).toArray();
	}

	private static long readLong() throws IOException {
		return Long.parseLong(in.readLine());
	}

	private static double[] readDoubles() throws IOException {
		return Stream.of(in.readLine().split(" ")).mapToDouble(Double::parseDouble).toArray();
	}

	private static double readDouble() throws IOException {
		return Double.parseDouble(in.readLine());
	}

	private static String readString() throws IOException {
		return in.readLine();
	}

	private static int setBit(int S, int j) {
		return S | (1 << j);
	}

	private static int isOn(int S, int j) {
		return S & (1 << j);
	}

	private static int clearBit(int S, int j) {
		return S & ~(1 << j);
	}

	private static int toggleBit(int S, int j) {
		return S ^ (1 << j);
	}

	private static int lowBit(int S) {
		return S & (-S);
	}

	private static int setAll(int n) {
		return (1 << n) - 1;
	}

	private static int modulo(int S, int N) {
		return ((S) & (N - 1));
	} // returns S % N, where N is a power of 2

	private static boolean isPowerOfTwo(int S) {
		return (S & (S - 1)) == 0 ? true : false;
	}

	private static int nearestPowerOfTwo(int S) {
		return ((int) Math.pow(2.0, (int) ((Math.log((double) S) / Math.log(2.0)) + 0.5)));
	}

	private static int turnOffLastBit(int S) {
		return ((S) & (S - 1));
	}

	private static int turnOnLastZero(int S) {
		return ((S) | (S + 1));
	}

	private static int turnOffLastConsecutiveBits(int S) {
		return ((S) & (S + 1));
	}

	private static int turnOnLastConsecutiveZeroes(int S) {
		return ((S) | (S - 1));
	}

	private static void open() {
		in = new BufferedReader(new InputStreamReader(System.in));
		out = new BufferedWriter(new OutputStreamWriter((System.out)));
	}

	private static void close() throws IOException {
		out.flush();
		out.close();
		in.close();
	}
}


import java.util.*;
import java.io.*;
import java.util.stream.*;

public class Main{
	private static BufferedReader in;
	private static BufferedWriter out;

	public static void main(String[] args) throws IOException {
		open();

		StringTokenizer st;
		StringBuilder sb;

		int n=readInt();
		int ans=0;
		int a,b;
		while(n-->0) {
			st=new StringTokenizer(readString());
			a=Integer.parseInt(st.nextToken());
			b=Integer.parseInt(st.nextToken());
			if(a>b)
				ans++;
			else if(a<b)
				ans--;
			if(ans==0)
				out.write("Friendship is magic!^^\n");
			else if(ans>0)
				out.write("Mishka\n");
			else
				out.write("Chris\n");
		}

		close();
	}

	private static int[] readInts() throws IOException {
		return Stream.of(in.readLine().split(" ")).mapToInt(Integer::parseInt).toArray();
	}

	private static int readInt() throws IOException {
		return Integer.parseInt(in.readLine());
	}

	private static long[] readLongs() throws IOException {
		return Stream.of(in.readLine().split(" ")).mapToLong(Long::parseLong).toArray();
	}

	private static long readLong() throws IOException {
		return Long.parseLong(in.readLine());
	}

	private static double[] readDoubles() throws IOException {
		return Stream.of(in.readLine().split(" ")).mapToDouble(Double::parseDouble).toArray();
	}

	private static double readDouble() throws IOException {
		return Double.parseDouble(in.readLine());
	}

	private static String readString() throws IOException {
		return in.readLine();
	}

	private static int setBit(int S, int j) {
		return S | (1 << j);
	}

	private static int isOn(int S, int j) {
		return S & (1 << j);
	}

	private static int clearBit(int S, int j) {
		return S & ~(1 << j);
	}

	private static int toggleBit(int S, int j) {
		return S ^ (1 << j);
	}

	private static int lowBit(int S) {
		return S & (-S);
	}

	private static int setAll(int n) {
		return (1 << n) - 1;
	}

	private static int modulo(int S, int N) {
		return ((S) & (N - 1));
	} // returns S % N, where N is a power of 2

	private static boolean isPowerOfTwo(int S) {
		return (S & (S - 1)) == 0 ? true : false;
	}

	private static int nearestPowerOfTwo(int S) {
		return ((int) Math.pow(2.0, (int) ((Math.log((double) S) / Math.log(2.0)) + 0.5)));
	}

	private static int turnOffLastBit(int S) {
		return ((S) & (S - 1));
	}

	private static int turnOnLastZero(int S) {
		return ((S) | (S + 1));
	}

	private static int turnOffLastConsecutiveBits(int S) {
		return ((S) & (S + 1));
	}

	private static int turnOnLastConsecutiveZeroes(int S) {
		return ((S) | (S - 1));
	}

	private static void open() {
		in = new BufferedReader(new InputStreamReader(System.in));
		out = new BufferedWriter(new OutputStreamWriter((System.out)));
	}

	private static void close() throws IOException {
		out.flush();
		out.close();
		in.close();
	}
}


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int t,a,b,m=0,c=0;
        t = tan.nextInt();
        while(t-->0){
            a=tan.nextInt();
            b=tan.nextInt();
            m+=a;c+=b;
        }
        if(m>c)
            System.out.println("Mishka");
        else if(m<c)
            System.out.println("Chris");
        else
            System.out.println("Friendship is magic!^^");
    }
}


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int t,a,b,m=0,c=0;
        t = tan.nextInt();
        while(t-->0){
            a=tan.nextInt();
            b=tan.nextInt();
            if(a>b)
                m++;
            else if(a<b)
                c++;
        }
        if(m>c)
            System.out.println("Mishka");
        else if(m<c)
            System.out.println("Chris");
        else
            System.out.println("Friendship is magic!^^");
    }
}


import java.io.*;
import java.util.*;
import java.lang.Math;
public class Solution {

    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);

       int n=sc.nextInt();
       int a=0,b=0;
     for(int i=0;i<n;i++)
     {
         int x=sc.nextInt();
         int y=sc.nextInt();
         if(x>y)
          a++;
         if(y>x)
          b++;
     }
           if(a>b)
       System.out.print("Mishka");
       else if(a<b)
         System.out.print("Chris");
         else
         System.out.println("Friendship is magic!^^");
    }
}


import java.io.*;
import java.util.*;
import java.lang.Math;
public class Solution {

    public static void main(String[] args) {
       Scanner sc=new Scanner(System.in);

       int n=sc.nextInt();
       int a=0,b=0;
     for(int i=0;i<n;i++)
     {
         int x=sc.nextInt();
         int y=sc.nextInt();
         a=a+x;
         b=b+y;
     }
           if(a>b)
       System.out.print("Mishka");
       else if(a<b)
         System.out.print("Chris");
         else
         System.out.println("Friendship is magic!^^");
    }
}


import java.util.*;
public class Solution703A
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int mi=0,ch=0;
		while(n-- >0)
		{
			int m=sc.nextInt();
			int c=sc.nextInt();
			if(m>c)
			 mi++;
			else if(c>m)
			 ch++;
		}
		if(mi>ch)
		  System.out.print("Mishka");
		else if(ch>mi)
		 System.out.print("Chris");
		else
		 System.out.print("Friendship is magic!^^");
	}
}


import java.util.*;
public class Solution703A
{
	public static void main(String args[])
	{
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		int mi=0,ch=0;
		while(n-- >0)
		{
			int m=sc.nextInt();
			int c=sc.nextInt();
			if(m>c)
			 mi++;
			else
			 ch++;
		}
		if(mi>ch)
		  System.out.print("Mishka");
		else if(ch>mi)
		 System.out.print("Chris");
		else
		 System.out.print("Friendship is magic!^^");
	}
}


import java.util.Scanner;

public class Mishka_Game {
//Progress 1
	public static void main(String[] args) {
	Scanner in = new Scanner(System.in);
	int t = in.nextInt();
	int a[]=new int[t];
	int countM=0,countC=0;
	while(t-->0){ //cases
		for(int i=0;i<2;i++) {
		 a[i]=in.nextInt();
	}
	if(a[0]>a[1]) {//comparing the first Index of array with with second
		countM++;//Mishka
		}
	else if(a[0]<a[1]){//comparing the first Index of array with with second

		countC++;//chris
	}
	else {
		countM+=0;
		countC+=0;
	}
	}
	//result which should be outside the cases
	if (countM>countC) {System.out.println("Mishka");}
	else if(countM<countC) {System.out.println("Chris");}
	else   {System.out.println("Friendship is magic!^^");}
	}
}


import java.util.Scanner;

public class Mishka {

	public static void main(String[] args) {
	Scanner in = new Scanner(System.in);
	int t =in.nextInt();
	int countM=0,countC=0;
	int C = 0,M = 0;
	while(t-->0) {
		 M = in.nextInt();
		 C = in.nextInt();

	countM+=(M>C)?1:0;
	countC+=(M<C)?1:0;

	}
	if(countM>countC)System.out.println("Mishka");
	else if(countM<countC)System.out.println("Chris");
	else System.out.println("Friendship is magic!^^");
	}

}


import java.util.*;
public class MishkaAndGame {

	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int n=sc.nextInt();
		int m=0,c=0;
		for(int i=0;i<n;i++) {
			int x=sc.nextInt(),y=sc.nextInt();
			if(x>y)m++;
			else if(x<y)c++;
		}
		if(m>c)System.out.println("Mishka");
		else if(m<c)System.out.println("Chris");
		else System.out.println("Friendship is magic!^^");

	}

}


import java.util.*;
public class Main{
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
        int size=sc.nextInt();
        int[] ar1=new int[size];
        int[] ar2=new int[size];
        int r1=0;
        int r2=0;
        for(int i=0;i<size;i++){
            ar1[i]=sc.nextInt();
            ar2[i]=sc.nextInt();
            if(ar1[i]>ar2[i])r1++;
            else if(ar1[i]<ar2[i])r2++;
        }
        if(r1>r2)System.out.println("Mishka");
        else if(r1<r2)System.out.println("Chris");
        else System.out.println("Friendship is magic!^^");

    }
}


import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ac
 */
public class P703A {
    public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt();
        int mi=0;
        int ch=0;
        for(int i=0; i<n; i++){
            int m =sc.nextInt();
            int c =sc.nextInt();

            if(m>c){
                mi++;
            }
            else{
                ch++;
            }
        }
        if(mi>ch){
            System.out.println("Mishka");
        }
        else if(mi==ch){
            System.out.println("Friendship is magic!^^");
        }
        else{
            System.out.println("Chris");
        }
    }
}


import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ac
 */
public class P703A {
    public static void main(String[] args){
        Scanner sc = new Scanner (System.in);
        int n = sc.nextInt();
        int mi=0;
        int ch=0;
        for(int i=0; i<n; i++){
            int m =sc.nextInt();
            int c =sc.nextInt();

            if(m>c){
                mi++;
            }
            else if(c>m){
                ch++;
            }
        }
        if(mi>ch){
            System.out.println("Mishka");
        }
        else if(mi==ch){
            System.out.println("Friendship is magic!^^");
        }
        else{
            System.out.println("Chris");
        }
    }
}


import java.util.Scanner;

public class MishkaandGame {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n, mPtsC;
        n = scanner.nextInt();
        mPtsC = 0;
        while(n-- > 0) {
            if(scanner.nextInt() > scanner.nextInt())   ++mPtsC;
            else    --mPtsC;
        }
        if(mPtsC > 0)   System.out.println("Mishka");
        else if(mPtsC < 0)  System.out.println("Chris");
        else    System.out.println("Friendship is magic!^^");
    }
}


import java.util.Scanner;

public class MishkaandGame {
    public static void main(final String[] args) {
        final Scanner scanner = new Scanner(System.in);
        int n, mPtsC, m, c;
        n = scanner.nextInt();
        mPtsC = 0;
        while(n-- > 0) {
            m = scanner.nextInt();
            c = scanner.nextInt();
            if(m > c)   ++mPtsC;
            else if(m < c)    --mPtsC;
        }
        if(mPtsC > 0)   System.out.println("Mishka");
        else if(mPtsC < 0)  System.out.println("Chris");
        else    System.out.println("Friendship is magic!^^");
    }
}


import java.util.*;
import java.io.*;
public class Solution {

	static Scanner scr=new Scanner(System.in);
	public static void main(String[] args) {
		// TODO Auto-generated method stub
//		int t=scr.nextInt();
//		while(t-->0) {
			solve();
			System.out.println();
//		}
	}
	static void solve() {
		int n=scr.nextInt();
		int m=0;
		int c=0;
		for(int i=0;i<n;i++) {
			int mi=scr.nextInt();
			int ci=scr.nextInt();
			if(mi>ci) {
				m++;
			}else if(mi<ci){
				c++;
			}
		}
		if(m>c) {
			System.out.print("Mishka");
		}else if(m<c) {
			System.out.print("Chris");
		}else {
			System.out.print("Friendship is magic!^^");
		}
	}
}


import java.util.*;
import java.io.*;
public class Solution {

	static Scanner scr=new Scanner(System.in);
	public static void main(String[] args) {
		// TODO Auto-generated method stub
//		int t=scr.nextInt();
//		while(t-->0) {
			solve();
			System.out.println();
//		}
	}
	static void solve() {
		int n=scr.nextInt();
		int m=0;
		int c=0;
		for(int i=0;i<n;i++) {
			int mi=scr.nextInt();
			int ci=scr.nextInt();
			if(mi>ci) {
				m++;
			}else {
				c++;
			}
		}
		if(m>c) {
			System.out.print("Mishka");
		}else if(m<c) {
			System.out.print("Chris");
		}else {
			System.out.print("Friendship is magic!^^");
		}
	}
}


import com.sun.jdi.ArrayReference;
import com.sun.source.tree.WhileLoopTree;

import java.io.*;
import java.util.*;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;

public class CP {
    static long startTime;
    static long endTime;
    static Boolean [] prime ;
    static Scanner sc = new Scanner(System.in);
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;

        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
    public static int lowerBound
            (Integer[] array, int length, int value) {
        int l = 0;
        int r = length;
        while (l < r) {
            int mid = (l + r) / 2;
            if (value < array[mid]) {
                r = mid;
            } else {
                l = mid + 1;
            }
        }
        return l;
    }
    public static long gcd(long a, long b){
        if (b == 0)
            return a;
        else return gcd(b, a % b);
    }
    public  static  long countDivs(long n ){
        int cn=0;
        long sqr = (long)Math.sqrt(n);
        for (long i = 1; i<=sqr ; ++i) {
            if(n%i==0){
                ++cn;
            }
        }
        cn*=2;
        if(sqr*sqr==n) cn--;
        return cn;

    }
    static void prime(int  x) {
        //sieve algorithm. nlog(log(n)).
        prime=new Boolean[ (x+1)];
        Arrays.fill(prime,true);
        prime[0] = prime[1] = false;
        for (int  i = 2; i * i <= x ; i++)
            if (prime[i])
                for (int  j = i * i; j <= x; j += i)
                    prime[j] = false;
    }
    static int[] sum;
    static void cumulitiveSum( int [] arr){
        sum = new int[arr.length];
        sum[0]=arr[0];
        for (int i = 1; i <arr.length; i++) {
            sum[i]=arr[i]+sum[i-1];
        }
    }
    static boolean isEven(long x ){
        return x % 2 == 0;
    }
    static boolean isPrime(long x ){
        boolean flag = true;
        int sqr = (int)Math.sqrt(x);
        if(x<2) return false;
        for (int i = 2; i <=sqr; i++) {
            if(x%i==0){
                flag=false;
                break;
            }
        }
        return flag;
    }
    public static void main(String [] args)   {
        startTime = System.currentTimeMillis();
       // int T = sc.nextInt();while (T--!=0)
        {
            solve();
        }
        endTime = System.currentTimeMillis();
        long duration= endTime-startTime;
        //System.out.println(duration);
    }
    public static void solve()  {
        //////////////////////////////////////////////////////////////////////
       int n =sc.nextInt();
       int m =0,c=0;
        for (int i = 0; i < n; i++) {
            int x=sc.nextInt(),y=sc.nextInt();
            if(x>y){
                m++;
            }
            else if (y>x) c++;
    }
        if(m>c){
            System.out.println("Mishka");
        }
        else if(c>m) System.out.println("Chris");
        else System.out.println("Friendship is magic!^^");
///////////////////////////////////////////////////////////////////////
    }

}