#import <Foundation/Foundation.h>
int main(int argc, char **argv) {
  	NSInteger N, H;
  	scanf("%ld %ld", &H, &N);
  	int i = 0;
  	NSInteger remained = H;
  	BOOL result = NO;
  	for (i=0;i<N;i++) {
      NSInteger v;
      scanf("%ld", &v);
      H -= v;
      if (H <= 0) {
        result = YES;
        break;
      }
    }
  	printf("%s", result ? "Yes" : "No");
	return 0;
}