n,h = map(int,input().split()) a = list(map(int,input().split())) for i in a: if i % h == 0: print('YES') exit(0) print('NO')