import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.List;
import java.util.Queue;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		execute5_3();
	}
	
	private static void execute5_3() {
		try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} import java.util.ArrayDeque; ArrayDeque java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Queue; Queue java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		execute5_3();
	}
	
	private static void execute5_3() {
		try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} Main public static void main(String[] args) {
		execute5_3();
	} main {
		execute5_3();
	} execute5_3() execute5_3 String[] args args private static void execute5_3() {
		try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	} execute5_3 {
		try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	} try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		} {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) long H = sc.nextLong(); H sc.nextLong() sc.nextLong sc int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			} int i=0; int i=0; i 0 i<N i N i++ i++ i {
				long a = sc.nextLong();
				H = H-a;
			} {
				long a = sc.nextLong();
				H = H-a;
			} long a = sc.nextLong(); a sc.nextLong() sc.nextLong sc H = H-a H H-a H a if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			} 0<H 0 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" public class Main {

	public static void main(String[] args) {
		execute5_3();
	}
	
	private static void execute5_3() {
		try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		execute5_3();
	}
	
	private static void execute5_3() {
		try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
} Main
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.List;
import java.util.Queue;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		execute5_3();
	}
	
	private static void execute5_3() {
		try (Scanner sc = new Scanner(System.in)) {
			long H = sc.nextLong();
			int N = sc.nextInt();
			
			
			for(int i=0; i<N;i++) {
				long a = sc.nextLong();
				H = H-a;
			}
			if(0<H) {
				
				System.out.println("No");
			} else {
				System.out.println("Yes");
			}
		}
	}
}