Given an integer , count how many quadruples (a,b,c,d) such that a^b \le c^d and (1 \le a,b,c,d \le n)
The first line contains single integer (1 \le t \le 10^4) – the number of test cases.
The only line of each test contains single integer (1 \le n \le 1000) – the integer .
It's guaranteed that sum of overall test cases doesn't exceed .
For each test, output a single integer – the count of quadruples (a,b,c,d) that satisfy the condition.
Example 1
Subtask ( points) : (1 \le n \le 3)
Subtask ( points) : (1 \le \sum n \le 20)
Subtask ( points) : (1 \le \sum n \le 100)
Subtask ( points) : (1 \le \sum n \le 500)
Subtask ( points): No additional constraints.