Type: Default 1000ms 256MiB

直到遥远尽头

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

cjcjsrsr 在玩游戏。

Description

他们有 nn 堆石子,第 ii 堆石子有 aia_i 个,保证初始时 aiai+1(1i<n)a_i \leq a_{i + 1}(1 \leq i < n)。现在他们轮流对这些石子进行操作,每次操作人可以选择满足 ai>ai1a_i > a_{i - 1}a0a_0 视为 00)的一堆石子,并从中取走一个。谁最后不能取了谁输。cj 先手,他们都使用最优策略,请判断最后谁会取得胜利。

Input

第一行一个整数 n(1n100)n (1 \leq n \leq 100),表示石子堆数。

接下来一行 nn 个数,第 ii 个数为 ai(1ai109)a_i(1 \leq a_i \leq 10^9),意义如上所述。

Output

"cjcj" 或 "srsr",表示谁会赢。

Samples

1
1
cj

Limitation

1s, 1024KiB for each test case.

2025新生第一次周赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
8
Start at
2025-11-8 14:00
End at
2025-11-8 17:00
Duration
3 hour(s)
Host
Partic.
30