N, Q = map(int, input().split()) X = [int(input()) for _ in range(N)] print("Yes" if N + len(set(X)) <= Q else "No")