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

N = int(input())
ans = N/2

print(math.floor(ans))
import math

N = int(input())
ans = math.floor(N / 2)

if N % 2 == 0:
  print(ans - 1)
else:
  print(ans)