import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String info = br.readLine();
		String[] split = info.split(" ");
		int H = Integer.parseInt(split[0]);
		int N = Integer.parseInt(split[1]);
		info = br.readLine();
		String[] A = info.split(" ");
		
		for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		}
		
		if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String info = br.readLine();
		String[] split = info.split(" ");
		int H = Integer.parseInt(split[0]);
		int N = Integer.parseInt(split[1]);
		info = br.readLine();
		String[] A = info.split(" ");
		
		for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		}
		
		if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
} Main public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String info = br.readLine();
		String[] split = info.split(" ");
		int H = Integer.parseInt(split[0]);
		int N = Integer.parseInt(split[1]);
		info = br.readLine();
		String[] A = info.split(" ");
		
		for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		}
		
		if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	} main {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String info = br.readLine();
		String[] split = info.split(" ");
		int H = Integer.parseInt(split[0]);
		int N = Integer.parseInt(split[1]);
		info = br.readLine();
		String[] A = info.split(" ");
		
		for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		}
		
		if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String info = br.readLine(); info br.readLine() br.readLine br String[] split = info.split(" "); split info.split(" ") info.split info " " int H = Integer.parseInt(split[0]); H Integer.parseInt(split[0]) Integer.parseInt Integer split[0] split 0 int N = Integer.parseInt(split[1]); N Integer.parseInt(split[1]) Integer.parseInt Integer split[1] split 1 info = br.readLine() info br.readLine() br.readLine br String[] A = info.split(" "); A info.split(" ") info.split info " " for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			
			H = H-Integer.parseInt(A[i]);
		} {
			
			H = H-Integer.parseInt(A[i]);
		} H = H-Integer.parseInt(A[i]) H H-Integer.parseInt(A[i]) H Integer.parseInt(A[i]) Integer.parseInt Integer A[i] A i if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No"); H<=0 H 0 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String info = br.readLine();
		String[] split = info.split(" ");
		int H = Integer.parseInt(split[0]);
		int N = Integer.parseInt(split[1]);
		info = br.readLine();
		String[] A = info.split(" ");
		
		for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		}
		
		if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String info = br.readLine();
		String[] split = info.split(" ");
		int H = Integer.parseInt(split[0]);
		int N = Integer.parseInt(split[1]);
		info = br.readLine();
		String[] A = info.split(" ");
		
		for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		}
		
		if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String info = br.readLine();
		String[] split = info.split(" ");
		int H = Integer.parseInt(split[0]);
		int N = Integer.parseInt(split[1]);
		info = br.readLine();
		String[] A = info.split(" ");
		
		for(int i=0; i<N; i++) {
			
			H = H-Integer.parseInt(A[i]);
		}
		
		if(H<=0) {
			System.out.println("Yes");
		}else
			System.out.println("No");
	}
}
