there infinite pond represent number line there n rock pond number 1 n the ith rock locate integer coordinate a_i the coordinate rock pairwise distinct the rock number increase order coordinate a_1 a_2 dots a_na robot frog sit rock number s the frog programmable it base jumping distance parameter d there set jumping distance range if jump distance range set integer k frog jump rock rock distance d k d k inclusive direction the distance rock absolute difference coordinatesyou assign task implement feature frog give integer k determine frog reach rock number rock number s perform sequence jump jump distance range set k the sequence arbitrarily long emptyyou give q testcase feature jth testcase consist integer k Print yes ith rock reachable no otherwiseyou output yes no case example string yes yes yes yes recognize positive answer