You are given two integers $$$n$$$, $$$m$$$. Please determine if there exists a positive integer $$$s$$$ such that the following conditions are true:
$$$^\dagger$$$ A positive integer $$$a$$$ is called a palindrome when it reads the same when the order of digits is reversed.
Each test contains multiple test cases. The first line contains the number of test cases $$$t$$$ ($$$1 \le t \le 10^4$$$). The description of the test cases follows.
The only line of each test case contains two integers $$$n$$$ and $$$m$$$ ($$$1 \le n,m \le 10^8$$$) — the number of digits and the sum of digits.
For each test case, if there exists a valid integer $$$s$$$, print "YES"; otherwise, print "NO".
You can output the answer in any case (For example, the strings "yEs", "yes", "Yes", and "YeS" will be recognized as positive responses).
77 108 107 1510 2090 10010 782 5
YESYESYESYESYESYESNO
In the first test case, $$$2\,112\,112$$$ satisfies all four conditions:
Therefore, $$$2\,112\,112$$$ can be an answer.
In the second test case, it can be shown that there is no integer $$$s$$$ which satisfies all the conditions.
In the fourth test case, $$$1\,232\,222\,321$$$ can be an answer.
| Name |
|---|


