Problem M: 规律的数串

Problem M: 规律的数串

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 99  Solved: 57
[Status] [Submit] [Creator:]

Description

有这样一种数串,1.2.3.4.5.6.7.8.2.2.3.4.5.6.7.8.3.2.3.4.5.6.7.8.…99.2.3.4.5.6.7.8……
想知道这种数串第n个数是几,你能算出来吗?

Input

一行,1个整数。表示想知道这串数字中的第n个是几?

Output

一行,1个数,即这串数字中的第n个数。

Sample Input Copy

9

Sample Output Copy

2