https://www.luogu.com.cn/problem/P2181
"""
P2181 对角线
https://www.luogu.com.cn/problem/P2181
"""
n=int(input())
ans=n*(n-1)//2*(n-2)//3*(n-3)//4
print(ans)
https://www.luogu.com.cn/problem/P2181
"""
P2181 对角线
https://www.luogu.com.cn/problem/P2181
"""
n=int(input())
ans=n*(n-1)//2*(n-2)//3*(n-3)//4
print(ans)