Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems.
×

The following languages are additionally available for the problems from the contest

April Fools Day Contest 2020:

- UnknownX

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

B. Limericks

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard 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 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.

Examples

Input

35

Output

57

Input

57

Output

319

Input

391

Output

1723

Codeforces (c) Copyright 2010-2020 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jul/09/2020 14:53:09 (i1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|