#CCBCHBA0000121. Đếm ô trên và dưới chéo (Count Cells Above and Below Diagonal)

Đếm ô trên và dưới chéo (Count Cells Above and Below Diagonal)

Count Cells Above and Below Diagonal

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

In an nn-by-nn grid with 1-based row ii and column jj, count cells above the main diagonal (i<ji<j) and below it (i>ji>j). Cells with i=ji=j are excluded.

Input

One line contains integer nn.

Output

Print two integers: the count above the diagonal followed by the count below it.

Subtasks

  • Subtask 1 (20%): 1≤n≤101\le n\le 10.

  • Subtask 2 (30%): 1≤n≤1001\le n\le 100.

  • Subtask 3 (50%): 1≤n≤10001\le n\le 1000.

Examples

Example 1

Input:

3

Output:

3 3

Explanation:

Count ij separately; exclude i=j.

Example 2

Input:

1

Output:

0 0

Explanation:

Count ij separately; exclude i=j.