+⊕3\%#13090

+⊕3\%

2 seconds
256 megabytes

You are given a non-negative integer . Consider all triples of non-negative integers (a,b,c) satisfying both of the following:

Among all such triples, find the maximum possible value of the product a \cdot b \cdot c.

It can be shown that for every x \geq 2 at least one valid triple exists.

Input

The first line contains a single integer (1 \leq t \leq 10^5) — the number of test cases.

Each test case contains a single integer (2 \leq x \leq 10^6).

It is not guaranteed that \sum x \le 10^6 overall tests.

Output

For each test case, output a single integer — the maximum value of a \cdot b \cdot c over all valid triples.

Note: the answer may be as large as roughly 10^{18}, which does not fit into a 32-bit integer type. Use 64-bit integers.

Examples

Example 1

Loading
Loading

Scoring

  1. Subtask ( points) : (\sum x \leq 100).

  2. Subtask ( points) : (\sum x \leq 2000).

  3. Subtask ( points) : No additional constraints.