307270: CF1331B. Limericks

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Limericks

题意翻译

``` 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. ``` - 输入:一个整数 $a$,其中 $4\le a\le 998$,保证有效。 - 输出:一个整数。

题目描述

``` <pre class="verbatim">There was once young lass called Mary, <br></br>Whose jokes were occasionally scary. <br></br>On this April's Fool <br></br>Fixed limerick rules <br></br>Allowed her to trip the unwary.<br></br><br></br>Can she fill all the lines<br></br>To work at all times?<br></br>On juggling the words<br></br>Right around two-thirds<br></br>She nearly ran out of rhymes.<br></br> ```

输入输出格式

输入格式


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 a single number.

输入输出样例

输入样例 #1

35

输出样例 #1

57

输入样例 #2

57

输出样例 #2

319

输入样例 #3

391

输出样例 #3

1723

Input

题意翻译

``` 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. ``` - 输入:一个整数 $a$,其中 $4\le a\le 998$,保证有效。 - 输出:一个整数。

加入题单

算法标签: