Codeforces Round 439 (Div. 2)
A
The Artful Expedient
Codeforces
1100
原题
←B →
翻译中…

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 $2*n*$ 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 $2*n*$ 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 $2*n*$ 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.

翻译中…

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.

翻译中…

样例

Input #1
3
1 2 3
4 5 6
Output #1
Karen
InputCopy OutputCopy
Input #2
5
2 4 6 8 10
9 7 5 3 1
Output #2
Karen
InputCopy OutputCopy
题目信息
题号
869A
时间限制
1 s
内存限制
256 MB
标签
暴力
模拟

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