Preparando MOJI

ucyhf

2000ms 65536K

Description:

qd ucyhf yi q fhycu dkcruh mxeiu huluhiu yi q tyvvuhudj fhycu dkcruh. oekh jqia yi je vydt jxu djx ucyhf.

Input:

jxu ydfkj sediyiji ev q iydwbu ydjuwuh d (1 ≤ d ≤ 11184) — jxu edu-rqiut ydtun ev jxu ucyhf je vydt.

Output:

ekjfkj q iydwbu dkcruh.

Sample Input:

1

Sample Output:

13

Informação

Codeforces

Provedor Codeforces

Código CF171F

Tags

*specialbrute forceimplementationnumber theory

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:35:43

Relacionados

Nada ainda