시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB333100.000%

문제

There is a $10^9 \times 10^9$ grid, with rows numbered from $1$ to $10^9$ and columns numbered from $1$ to $10^9$. Denote $(r, c)$ as the cell at row $r$ and column $c$.

Initially, exactly $N$ of the cells are black, and the rest are white. The $i$-th black cell is located at $(R_i, C_i)$.

Your childhood friends, Kita and Kami, will alternately take turns playing on this grid, with Kita moving first. A turn in the game proceeds as follows.

  1. Pick a black cell $(r, c)$.
  2. Pick a subset $K \subseteq \{1, 2, \ldots, t\}$ where $t$ is the largest integer such that $2^t \leq \min(r, c)$. The set $K$ may be empty.
  3. For each $k \in K$, toggle the colour of all cells $(r-i, c-j)$ satisfying $0 \leq i < 2^k$, $0 \leq j < 2^k$, and $(i, j) \neq (0, 0)$. Toggling a colour means changing black colour to white and vice versa.
  4. Toggle the colour of cell $(r, c)$. Note that the colour of cell $(r, c)$ becomes white after the toggle.

A player who is unable to play on their turn, i.e., there are no black cells anymore, loses the game, and the opposing player wins the game. If both players play optimally, determine who will win the game.

입력

The first line contains an integer $N$ ($1 \leq N \leq 200\,000$) representing the number of black cells. Each of the next $N$ lines contains two integers $R_i$ and $C_i$ ($1 \leq R_i, C_i \leq 10^9$) representing the location of the $i$-th black cell. All the given black cells are different.

출력

Output one line, containing either Kita if the first player will win the game, or Kami otherwise.

예제 입력 1

4
1 2
1 3
2 2
2 3

예제 출력 1

Kita

Explanation of Sample 1: The first player picks the cell $(2, 3)$ and the set $K = \{ 1 \}$ and all the cells become white afterwards.

예제 입력 2

1
8 8

예제 출력 2

Kita

Explanation of Sample 2: The first player picks the cell $(8, 8)$ and the set $K$ as an empty set, and the only black cell becomes white afterwards.

예제 입력 3

2
2 4
4 2

예제 출력 3

Kami

Explanation of Sample 3: The second player can always mirror the last move made by the first player.