n, h = map(int, input().split()) al = list(map(int, input().split())) cnt = 0 for a in al: if a%h == 0: cnt += 1 if cnt > 0: print('YES') else: print('NO')