CF213D Stars

Description

Furik loves painting stars. A star is a shape that results if we take a regular pentagon and paint all diagonals in it. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF213D/de090c3465fd4bd00462358563eb01e18b887532.png)Recently he decided to teach Rubik to paint stars. After many years of training Rubik could paint stars easily. But now Furik decided to test Rubik and complicated the task. Rubik must paint $ n $ stars, observing the following rules: - all stars must be painted in a single move (i.e. it is forbidden to take the pen away from the paper); - it is forbidden to paint the same segment of non-zero length more than once; - the stars can intersect only in their vertexes; - the length of a side of the regular pentagon, in which Rubik paints each star, must equal 10. Help Rubik to cope with this hard task.

Input Format

A single line contains an integer $ (1

Output Format

On the first line print an integer $ m $ $ (1

Explanation/Hint

The initial position of points in the sample is: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF213D/9ed24952d8da92f918fab9096996a3b04fe818fe.png)The order in which Rubik can paint segments is: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF213D/7c6a93950d224a9b74c04eee31c5dd264bd58980.png)