Preparando MOJI

Limericks

1000ms 262144K

Description:

There was once young lass called Mary,  
Whose jokes were occasionally scary.
On this April's Fool
Fixed limerick rules
Allowed her to trip the unwary.

Can she fill all the lines
To work at all times?
On juggling the words
Right around two-thirds
She nearly ran out of rhymes.

Input:

The input contains a single integer $$$a$$$ ($$$4 \le a \le 998$$$). Not every integer in the range is a valid input for the problem; you are guaranteed that the input will be a valid integer.

Output:

Output a single number.

Sample Input:

35

Sample Output:

57

Sample Input:

57

Sample Output:

319

Sample Input:

391

Sample Output:

1723

Informação

Codeforces

Provedor Codeforces

Código CF1331B

Tags

*specialmathnumber theory

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 10:00:39

Relacionados

Nada ainda