#P343. 练59.1 第n大的数

练59.1 第n大的数

Description

Define a function to find the nn-th number in the sequence {9999, 200200, 9595, 8787, 9898, 12-12, 3030, 8787, 7575, 25-25}, and use it to output the nn-th largest number.

Input Format

A single line containing an integer nn. If nn is invalid, re-enter the input.

Output Format

A single line containing an integer, representing the nn-th largest number in the sequence.

Sample

2
99
-1
2
99