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