#P1005. Segment Functions——分段函数

Segment Functions——分段函数

Statement

Given an integer nn, find the value of the following function:

$$f(x)= \left\{\begin{matrix} x~(1<x<5) \\ x^2~(5\leq x<10) \\ \sqrt{x+\sin x} ~ (x\geq 10) \end{matrix}\right. $$

Input

Input a single integer n(1<n109)n(1< n\leq 10^9) on one line.

Output

Output the function expression, retaining only integers.

Samples

7
14
114514
114514

Notes

0a,b,c10000\leq a,b,c\leq 1000, and each edge length is input with no more than 22 decimal places.