X = int(input()) Y = 0 for i in range(int(input())): A, B = map(int,input().split()) Y += A*B if X==Y : print("Yes") else : print("No")