<a href="https://codeforces.com/problemset/problem/1294/C">https://codeforces.com/problemset/problem/1294/C</a>
Input Format
.
Output Format
.
Constraints
.
Notice
.
Example
Input
5 64 32 97 2 12345
Output
YES 2 4 8 NO NO NO YES 3 5 823