h, n = list(map(int, input().split()))

a = [int(x) for x in input().split()]



h -= sum(a)



if h <= 0:

    print('Yes')

else:

    print('No')

def can_win_without_repeated_move(health, special_moves_damages) -> str:

    """

    Given a monster's health and a number of special moves with differ damages, 

    can we deplete the monster's health without repeating the same move twice?

    :param health: int

    :param special_moves_damages: list[int] 

    :return: str

    """

    return 'Yes' if health - sum(special_moves_damages) <= 0 else 'No'





if __name__ == '__main__':

    print((can_win_without_repeated_move(list(map(int, input().split()))[0], list(map(int, input().split())))))

h, n = list(map(int, input().split()))
a = [int(x) for x in input().split()]
h -= sum(a)
if h <= 0:
    print("Yes")
else:
    print("No")

def can_win_without_repeated_move(health, special_moves_damages) -> str:
    """
    Given a monster's health and a number of special moves with differ damages,
    can we deplete the monster's health without repeating the same move twice?
    :param health: int
    :param special_moves_damages: list[int]
    :return: str
    """
    return "Yes" if health - sum(special_moves_damages) <= 0 else "No"


if __name__ == "__main__":
    print(
        (
            can_win_without_repeated_move(
                list(map(int, input().split()))[0], list(map(int, input().split()))
            )
        )
    )

-h, n = list(map(int, input().split())) -a = [int(x) for x in input().split()] -h -= sum(a) -if h <= 0: -    print("Yes") -else: -    print("No") +def can_win_without_repeated_move(health, special_moves_damages) -> str: +    """ +    Given a monster's health and a number of special moves with differ damages, +    can we deplete the monster's health without repeating the same move twice? +    :param health: int +    :param special_moves_damages: list[int] +    :return: str +    """ +    return "Yes" if health - sum(special_moves_damages) <= 0 else "No" + + +if __name__ == "__main__": +    print( +        ( +            can_win_without_repeated_move( +                list(map(int, input().split()))[0], list(map(int, input().split())) +            ) +        ) +    )