import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String[] s1 = sc.nextLine().split(" "); String[] s2 = sc.nextLine().split(" "); String[] s3 = sc.nextLine().split(" "); Set<String> s = new HashSet<>(); s.add(s1[0] + s1[1] + s1[2]); s.add(s2[0] + s2[1] + s2[2]); s.add(s3[0] + s3[1] + s3[2]); s.add(s1[0] + s2[1] + s3[2]); s.add(s1[2] + s2[1] + s3[0]); s.add(s1[0] + s2[0] + s3[0]); s.add(s1[1] + s2[1] + s3[1]); s.add(s1[2] + s2[2] + s3[2]); if(s.contains("KKK")) System.out.println("KiKi wins!"); else if(s.contains("BBB")) System.out.println("BoBo wins!"); else System.out.println("No winner!"); } }