Matches

For each match length, decide whether it fits in a W by H box, meaning its length is at most the diagonal sqrt(W^2+H^2).

Easy2GeometryMathImplementationNo attempts yetTime limit2sMemory limit512 MB

Problem

Sean scattered matches all over his bedroom floor.

His mother was not pleased and told him to put every match into a box. Sean soon noticed that not all of the matches on the floor fit in the box, so he decided to take the ones that do not fit and throw them into the neighbour's garbage, where his mother will not find them.

Decide which matches fit in the box his mother gave him. A match fits in the box when its whole length can lie on the bottom of the box. Sean checks the matches one at a time.

Input

The first line contains the number of matches on the floor NN (1N501 \le N \le 50) and the two side lengths of the bottom of the box, WW and HH (1W1001 \le W \le 100, 1H1001 \le H \le 100).

Each of the next NN lines contains the length of one match, an integer between 11 and 10001000.

Output

For each match, in the order given in the input, print YES if it fits in the box and NO if it does not, one answer per line.