N, Q = map(int, input().split()) # X = [int(input()) for _ in range(Q)] for x in range(Q): print("yes") if x%N else print("No")