LearnPy Hub
← Arena
EasyRating 800

Handshakes

n people each shake hands with everyone else once. Print the number of handshakes.

Input

One integer n.

Output

A count.

Sample 1

Input
2
Output
1

Sample 2

Input
1
Output
0
solution.py
Output appears here
Handshakes · Python Arena problem · LearnPy Hub