#include <iostream>

#include <iomanip>
#include <stdio.h>
using namespace std;

int main()
{
    int N, h;
    cin >> h >> N;
    int a[100000];
    for (int i = 0; i < N; i++)
    {
        scanf_s("%d", &a[i]);
        h -= a[i];
    }
    if (h > 0)
        printf("No");
    else
        printf("Yes");

}