Rock... Paper!

After Karen have found the deterministic winning (losing?) strategy for rock-paper-scissors, her brother, Koyomi, comes up with a new game as a substitute. The game works as follows.

A positive integer n is decided first. Both Koyomi and Karen independently choose n distinct positive integers, denoted by x_1, x_2, ..., x_{n} and y_1, y_2, ..., y_{n} respectively. They reveal their sequences, and repeat until all of 2n integers become distinct, which is the only final state to be kept and considered.

Then they count the number of ordered pairs (i, j) (1 ≤ i, j ≤ n) such that the value x_{i} xor y_{j} equals to one of the 2n integers. Here xor means the bitwise exclusive or operation on two integers, and is denoted by operators ^ and/or xor in most programming languages.

Karen claims a win if the number of such pairs is even, and Koyomi does otherwise. And you're here to help determine the winner of their latest game.


-----Input-----

The first line of input contains a positive integer n (1 ≤ n ≤ 2 000) — the length of both sequences.

The second line contains n space-separated integers x_1, x_2, ..., x_{n} (1 ≤ x_{i} ≤ 2·10^6) — the integers finally chosen by Koyomi.

The third line contains n space-separated integers y_1, y_2, ..., y_{n} (1 ≤ y_{i} ≤ 2·10^6) — the integers finally chosen by Karen.

Input guarantees that the given 2n integers are pairwise distinct, that is, no pair (i, j) (1 ≤ i, j ≤ n) exists such that one of the following holds: x_{i} = y_{j}; i ≠ j and x_{i} = x_{j}; i ≠ j and y_{i} = y_{j}.


-----Output-----

Output one line — the name of the winner, that is, "Koyomi" or "Karen" (without quotes). Please be aware of the capitalization.


-----Examples-----
Input
3
1 2 3
4 5 6

Output
Karen

Input
5
2 4 6 8 10
9 7 5 3 1

Output
Karen



-----Note-----

In the first example, there are 6 pairs satisfying the constraint: (1, 1), (1, 2), (2, 1), (2, 3), (3, 2) and (3, 3). Thus, Karen wins since 6 is an even number.

In the second example, there are 16 such pairs, and Karen wins again.

Difficulty: interview

Starter code:

Solutions:
print('Karen')

print("Karen")

print("Karen")


n = int(input())
x = list(map(int, input().split()))
y = list(map(int, input().split()))

s = set(x + y)

c = sum(xi ^ yj in s for xi in x for yj in y)
print('Koyomi' if c%2 else 'Karen')


import sys


n = int(next(sys.stdin))

line = next(sys.stdin).strip()
a = list(map(int, line.split()))
b = list(map(int, line.split()))

ab = set(a).union(set(b))
p = 0
for i in range(n):
    for j in range(i + 1, n):
        x = a[i] ^ b[i]
        if x in ab:
            p += 1

if p % 2 == 0:
    print("Karen")
else:
    print("Koyomi")



n = int(input())
x = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
s = set(x+a)
count = 0
for i in x:
    for j in a:
        if i^j in s:
            count += 1
print('Karen' if count%2 == 0 else 'Koyomi')


n = int(input())
a = [int(z) for z in input().split()]
b = [int(z) for z in input().split()]
shit = set(a + b)
counter = 0
for i in range(n):
    for j in range(n):
        if a[i] ^ b[j] in shit:
            counter += 1
if counter % 2 == 0:
    print("Karen")
else:
    print("Koyomi")

print("Karen")

print("Karen")

n = input()
a = list(map(int, input().split()))
b = list(map(int, input().split()))
print("Karen")

def solution():
	n = int(input())
	x = [int(a) for a in input().split(' ')]
	dicx = {}
	for _x in x:
		dicx[_x] = True
	y = [int(a) for a in input().split(' ')]
	dicy = {}
	for _y in y:
		dicx[_y] = True

	ans = 0
	for _x in dicx:
		for _y in dicy:
			current = _x ^ _y
			if  current in dicx or current in dicx:
				ans += 1


	if ans%2 == 0:
		print('Karen')
	else:
		print('Koyomi')

solution()

n = int(input())
x = list(map(int, input().split()))
y = list(map(int, input().split()))
s = set(x+y)

result = len([1 for xn in x for yn in y if xn^yn in s])
#for xn in x:
#    for yn in y:
#        result += xn^yn in s

print("Karen" if result%2==0 else "Koyomi")

n = int(input())
data = list(map(int, input().split()))
data2 = list(map(int, input().split()))
print("Karen")

print("Karen")

n = int(input())
x = [int(i) for i in input().split()]
y = [int(i) for i in input().split()]

#z = set(x + y)
#count = 0
#for i in range(n):
#    for j in range(n):
#        value = x[i]^y[j]
#        print(x[i], y[j], value)
#        if value in z:
#            count+= 1
            

print('Karen')

print('Karen')


print("Karen")

n = int(input())
x = list(map(int, input().split()))
y = list(map(int,input().split()))
print("Karen")


n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
print("Karen")


n = int(input())
x_lst = input().split()
y_lst = input().split()

print('Karen')


import sys


def gis():
    l = sys.stdin.readline().strip()
    parts = l.split()
    return list(map(int, parts))


n, = gis()
xs = gis()
ys = gis()

nums = set(xs + ys)
cnt = 0
for x in xs:
    for y in ys:
        if (x ^ y) in nums:
            cnt += 1

if cnt % 2 == 0:
    print('Karen')
else:
    print('Koyomi')



import itertools as it

n = int(input())
k = 0
kar = map(int, input().split())
koy = map(int, input().split())
all = set(it.chain(kar, koy))
for i, j in it.product(kar, koy):
    if i ^ j in all:
        k += 1
print('Karen' if k % 2 == 0 else 'Koyomi')

print("Karen")


print("Karen")

print("Karen")