Problem Description

Given number of nodes n in a tree, print number of edges.

Input Format

One integer n.

Output Format

One integer.

Sample Test Case

Input:
5
Output:
4

Constraints

n>=1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next