Essam was observing the night sky when the Moon challenged him with a mathematical puzzle.A positive integer is called good if all of its digits are identical (for example, $$$7$$$, $$$22$$$, and $$$555$$$ are good numbers, while $$$15$$$ and $$$100$$$ are not).The Moon gives Essam a positive integer $$$n$$$.
Essam needs to check if both of the following conditions are true:
Help Essam write a program to answer the Moon's question!
The first line contains a single integer $$$t$$$ ($$$1 \le t \le 10^4$$$) — denotes the number of test cases.
The only line of each test case contains a single integer $$$n$$$ ($$$1 \le n \le 10^{18}$$$) — denotes the number Moon wants to multiply by 1.5.
For each test case, output "YES" if $$$n \times 1.5$$$ is a good number, and "NO" otherwise.
You can output the answer in any case (for example, the strings "yEs", "yes", "Yes" and "YES" will be recognized as a positive answer).
5244322288
YES YES NO YES NO