ÀÂÒ
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.

1571. Benches

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

The city park of IT City contains n east to west paths and n north to south paths. Each east to west path crosses each north to south path, so there are n2 intersections.

The city funded purchase of five benches. To make it seems that there are many benches it was decided to place them on as many paths as possible. Obviously this requirement is satisfied by the following scheme: each bench is placed on a cross of paths and each path contains not more than one bench.

Help the park administration count the number of ways to place the benches.

Input

The only line of the input contains one integer n (5 ≤ n ≤ 100) — the number of east to west paths and north to south paths.

Output

Output one integer — the number of ways to place the benches.

Examples

Input
5
Output
120

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / VolBIT / VolBIT-2016 /
1570. G - Challenge Pennants 1571. 1572. I - Parking Lot 1573. J - Divisibility 1574. K - Indivisibility
Problems from Contests and Camps / School olympiads and couses of Vologda region / Impulse - 2019 / Final Olympiad /
469. 03 - Linear combination 1571. 15. 05 - Factorials 296. 06 - Palindrom 67. 07 - Restoration of Brackets
time generating 0.375 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.