B. Limerickstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere 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 linesTo work at all times?On juggling the wordsRight around two-thirdsShe nearly ran out of rhymes.InputThe 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.OutputOutput a single number.ExamplesInput
35
Output
57
Input
57
Output
319
Input
391
Output
1723

35

57 
['*special problem', 'math', 'number theory']