import java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);

int h=scan.nextInt();
int n=scan.nextInt();
int[] a=new int[n];
 int i=0;
  for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  }

int sum=0;
for(i=0;i<n;i++){
  sum=sum+a[i];
}
  
  if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  }
}
} import java.util.Scanner; Scanner java.util public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);

int h=scan.nextInt();
int n=scan.nextInt();
int[] a=new int[n];
 int i=0;
  for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  }

int sum=0;
for(i=0;i<n;i++){
  sum=sum+a[i];
}
  
  if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  }
}
} Main public static void main(String[] args){
Scanner scan=new Scanner(System.in);

int h=scan.nextInt();
int n=scan.nextInt();
int[] a=new int[n];
 int i=0;
  for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  }

int sum=0;
for(i=0;i<n;i++){
  sum=sum+a[i];
}
  
  if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  }
} main {
Scanner scan=new Scanner(System.in);

int h=scan.nextInt();
int n=scan.nextInt();
int[] a=new int[n];
 int i=0;
  for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  }

int sum=0;
for(i=0;i<n;i++){
  sum=sum+a[i];
}
  
  if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  }
} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int h=scan.nextInt(); h scan.nextInt() scan.nextInt scan int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a=new int[n]; a new int[n] n int i=0; i 0 for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  } i=0; i=0 i 0 i<n i n i++ i++ i {
    a[i]=scan.nextInt();
  } {
    a[i]=scan.nextInt();
  } a[i]=scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan int sum=0; sum 0 for(i=0;i<n;i++){
  sum=sum+a[i];
} i=0; i=0 i 0 i<n i n i++ i++ i {
  sum=sum+a[i];
} {
  sum=sum+a[i];
} sum=sum+a[i] sum sum+a[i] sum a[i] a i if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  } sum<h sum h {
  System.out.println("No");
  } System.out.println("No") System.out.println System.out System System.out "No" {
    System.out.println("Yes");
  } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);

int h=scan.nextInt();
int n=scan.nextInt();
int[] a=new int[n];
 int i=0;
  for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  }

int sum=0;
for(i=0;i<n;i++){
  sum=sum+a[i];
}
  
  if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  }
}
} public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);

int h=scan.nextInt();
int n=scan.nextInt();
int[] a=new int[n];
 int i=0;
  for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  }

int sum=0;
for(i=0;i<n;i++){
  sum=sum+a[i];
}
  
  if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  }
}
} Main
import java.util.Scanner;

public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);

int h=scan.nextInt();
int n=scan.nextInt();
int[] a=new int[n];
 int i=0;
  for(i=0;i<n;i++){
    a[i]=scan.nextInt();
  }

int sum=0;
for(i=0;i<n;i++){
  sum=sum+a[i];
}
  
  if(sum<h){
  System.out.println("No");
  }else{
    System.out.println("Yes");
  }
}
}
