import java.util.Scanner;
 
public class Main{
 
public static void main(String[] args) {
 
int count = 0;
int H;
int N;
String message = "No";
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt();
N = scanner.nextInt();
  
int u[] = new int[N];
  
for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
}
if(H <= 0){
  message = "Yes";
}
  
System.out.println(message);
  
}
  
} import java.util.Scanner; Scanner java.util public class Main{
 
public static void main(String[] args) {
 
int count = 0;
int H;
int N;
String message = "No";
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt();
N = scanner.nextInt();
  
int u[] = new int[N];
  
for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
}
if(H <= 0){
  message = "Yes";
}
  
System.out.println(message);
  
}
  
} Main public static void main(String[] args) {
 
int count = 0;
int H;
int N;
String message = "No";
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt();
N = scanner.nextInt();
  
int u[] = new int[N];
  
for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
}
if(H <= 0){
  message = "Yes";
}
  
System.out.println(message);
  
} main {
 
int count = 0;
int H;
int N;
String message = "No";
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt();
N = scanner.nextInt();
  
int u[] = new int[N];
  
for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
}
if(H <= 0){
  message = "Yes";
}
  
System.out.println(message);
  
} int count = 0; count 0 int H; H int N; N String message = "No"; message "No" Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) H = scanner.nextInt() H scanner.nextInt() scanner.nextInt scanner N = scanner.nextInt() N scanner.nextInt() scanner.nextInt scanner int u[] = new int[N]; u new int[N] N for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
} int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
} {
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
} u[i] = scanner.nextInt() u[i] u i scanner.nextInt() scanner.nextInt scanner if(H>0){
    H = H - u[i];
  } H>0 H 0 {
    H = H - u[i];
  } H = H - u[i] H H - u[i] H u[i] u i if(H <= 0){
  message = "Yes";
} H <= 0 H 0 {
  message = "Yes";
} message = "Yes" message "Yes" System.out.println(message) System.out.println System.out System System.out message String[] args args public class Main{
 
public static void main(String[] args) {
 
int count = 0;
int H;
int N;
String message = "No";
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt();
N = scanner.nextInt();
  
int u[] = new int[N];
  
for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
}
if(H <= 0){
  message = "Yes";
}
  
System.out.println(message);
  
}
  
} public class Main{
 
public static void main(String[] args) {
 
int count = 0;
int H;
int N;
String message = "No";
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt();
N = scanner.nextInt();
  
int u[] = new int[N];
  
for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
}
if(H <= 0){
  message = "Yes";
}
  
System.out.println(message);
  
}
  
} Main
import java.util.Scanner;
 
public class Main{
 
public static void main(String[] args) {
 
int count = 0;
int H;
int N;
String message = "No";
 
Scanner scanner = new Scanner(System.in);
H = scanner.nextInt();
N = scanner.nextInt();
  
int u[] = new int[N];
  
for(int i = 0; i<N; i++){
  u[i] = scanner.nextInt();
  if(H>0){
    H = H - u[i];
  }
  
}
if(H <= 0){
  message = "Yes";
}
  
System.out.println(message);
  
}
  
}