You are given an array a containing N positive integers. You have to create a new array b from the given array.
The elements of the array b can be evaluated by using the equation bj = ∑ji=1ai∗2j−i.
There are Q queries to be answered. In each query, a single integer pi is given and asked if it is possible to get pi by adding some of the elements of the array b. If it is possible, print Yes else print No.
Input format
Output format
Print Q space-separated strings, where ith string is an answer to the ithquery.
Constraints
Array b for the given input will be {3,8}.