atcoder#NIKKEI20192QUALA. Sum of Two Integers

Sum of Two Integers

Score : 100100 points

Problem Statement

How many ways are there to choose two distinct positive integers totaling NN, disregarding the order?

Constraints

  • 1N1061 \leq N \leq 10^6
  • NN is an integer.

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.

4
1

There is only one way to choose two distinct integers totaling 44: to choose 11 and 33. (Choosing 33 and 11 is not considered different from this.)

999999
499999