ÀÂÒ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1569. Selection of Personnel

Time Limit: 0.5 seconds
Memory Limit:262144KB
Points:100
View Problem Statistics Submit Problem added debug

One company of IT City decided to create a group of innovative developments consisting from 5 to 7 people and hire new employees for it. After placing an advertisment the company received n resumes. Now the HR department has to evaluate each possible group composition and select one of them. Your task is to count the number of variants of group composition to evaluate.

Input

The only line of the input contains one integer n (7 ≤ n ≤ 777) — the number of potential employees that sent resumes.

Output

Output one integer — the number of different variants of group composition.

Examples

Input
7
Output
29

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / VolBIT / VolBIT-2016 /
1568. E - A Rectangle 1569. 1570. G - Challenge Pennants 1571. H - Benches 1572. I - Parking Lot
time generating 0.078 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.