Kaosar and Counting#12328

Kaosar and Counting

1 second
256 megabytes
Hard

You are given an integer . Your task is to count how many triples of integers (a, b, c) satisfy the following conditions:

Input

The first line contains one integer t~(1 \le t \le 10^3) — the number of test cases.

Each test case contains one integer n~(3 \le n \le 10^6).

There are no constraints on for the final subtask.

Output

For each test case, print the number of triples that satisfy the conditions.

Examples

Example 1

Loading
Loading

Scoring

  • Subtask ( points) : (1 \le \sum n \le 100)

  • Subtask ( points) : (1 \le \sum n \le 1000)

  • Subtask ( points) : (1 \le \sum n \le 10^4)

  • Subtask ( points) : (1 \le \sum n \le 10^6)

  • Subtask ( points) : No additional constraints