Too edgy

1

1 votes
Easy
Problem

You are given an integer N. You need to print the number of diagonals of a polygon having N vertices.

Input Format

  • The first and only line contains a single Integer N

Output Format

  • Print the number of diagonals of a polygon having N vertices

Constraints

\(3 \le N \le 10000\)

 

Sample Input
4
Sample Output
2
Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

A quadrilateral is the polygon having 4 vertices, and as we know, a quadrilateral has two diagonals.

Contributers:
Editor Image

?