Problem: You are given a positive integer . Check whether the number is representable as the sum of the cubes of two positive integers.
Formally, you need to check if there are two integers and () such that .
For example, if , then the numbers and are suitable (). If , then no pair of numbers and is suitable.
Input Format: The first line contains one integer () — the number of test cases. Then test cases follow.
Each test case contains one integer ().
Please note, that the input for some test cases won't fit into -bit integer type, so you should use at least -bit integer type in your programming language.
Output Format: For each test case, output on a separate line:
- "YES" if is representable as the sum of the cubes of two positive integers.
- "NO" otherwise.
You can output "YES" and "NO" in any case (for example, the strings yEs, yes, Yes and YES will be recognized as positive).
Note: The number is not representable as the sum of two cubes.
The number is represented as .
The number is not representable as the sum of two cubes.
The number is not representable as the sum of two cubes.
The number is represented as .
The number is represented as .
The number is represented as .