#P15834. [蓝桥杯第一届国际赛] 网站扩张

[蓝桥杯第一届国际赛] 网站扩张

Problem Description

Xiao Ming works at a well-known Internet company, and the company has developed a new feature. The company uses an invitation mechanism to let users try this feature.

Starting from day 11, there is 11 user who can use this feature. After this user has used it for one week (77 days), they can invite 11 user to use the feature on day 88. After that, they can invite 11 user every 22 days (on days 11,14,17,⋯11,14,17,\cdots).

A newly invited user can start using the feature on the same day. After using it for one week (77 days), they can start inviting other users, inviting 11 user every 22 days.

If every user fully uses their invitation ability, how many users can use this new feature by the end of day nn?

Input Format

Input one line containing an integer nn, representing the number of days.

Output Format

Output one integer, representing the answer.

20
9

Hint

Constraints

For 30%30\% of the testdata, 1≤n≤801 \le n \le 80.

For 60%60\% of the testdata, 1≤n≤1501 \le n \le 150.

For all testdata, 1≤n≤3001 \le n \le 300.

Translated by ChatGPT 5