Time limit
2s
Memory limit
128 MB
Let three positive integers (X), (Y), and (Z) satisfy the equation below.
[ X + Y = Z \quad (X \le Y) ]
Without restrictions there can be infinitely many solutions. For each of the following three conditions, applied independently, count how many solutions satisfy the equation.
The conditions are not applied together. Compute the number of solutions separately for conditions A, B, and C.
The first line contains a positive integer (N).
[ 1 \le N \le 500,000 ]
Print the number of solutions under condition A on the first line.
Print the number of solutions under condition B on the second line.
Print the number of solutions under condition C on the third line.