Chef attempted an exam consisting of
objective questions. The marking scheme of the exam is:
- marks for a correct answer.
- marks for an incorrect answer.
- marks for an unattempted question.
Find whether it is possible for Chef to score exactly marks.
If it is possible, print integers , , and denoting the number of correct answers, incorrect answers and unattempted questions respectively.
Input Format
- First line will contain , number of test cases. Then the test cases follow.
- Each test case contains of a single line of input, two integers .
Output Format
For each test case, print if it is possible to score exactly marks, otherwise print .
If the answer is , print integers , and in the next line such that:
- Chef's total score is exactly .
In case of multiple answers, every valid tuple is accepted.
You may print each character of the string in uppercase or lowercase (for example, the strings , , and will all be treated as identical).
Constraints
Sample Input 1
3
10 30
9 25
8 0
Sample Output 1
YES
10 0 0
NO
YES
1 3 4
Explanation
Test Case : A possible way of scoring marks in an exam with questions is: all the answers are correct. This way the score is . Thus, the values of and are and respectively.
Test Case : There is no possible way to score exactly marks in an exam with questions.
Test Case : A possible way of scoring marks in an exam with questions is: answer is correct, answers are wrong and questions are unattempted. This way the score is . Thus, the values of and are and respectively.
ConversionConversion EmoticonEmoticon