import java.util.Scanner;
public class Main {
	public static void main(String[]args) {
		Scanner s = new Scanner(System.in);
		double h = s.nextDouble();
		double n = s.nextDouble();
		double m =0;
		for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		}
		if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		
	}
}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[]args) {
		Scanner s = new Scanner(System.in);
		double h = s.nextDouble();
		double n = s.nextDouble();
		double m =0;
		for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		}
		if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		
	}
} Main public static void main(String[]args) {
		Scanner s = new Scanner(System.in);
		double h = s.nextDouble();
		double n = s.nextDouble();
		double m =0;
		for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		}
		if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		
	} main {
		Scanner s = new Scanner(System.in);
		double h = s.nextDouble();
		double n = s.nextDouble();
		double m =0;
		for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		}
		if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) double h = s.nextDouble(); h s.nextDouble() s.nextDouble s double n = s.nextDouble(); n s.nextDouble() s.nextDouble s double m =0; m 0 for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			m += s.nextDouble();
		} {
			m += s.nextDouble();
		} m += s.nextDouble() m s.nextDouble() s.nextDouble s if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		} m>=h m h {
			System.out.print("Yes");
		} System.out.print("Yes") System.out.print System.out System System.out "Yes" {
			System.out.print("No");
		} System.out.print("No") System.out.print System.out System System.out "No" String[]args args public class Main {
	public static void main(String[]args) {
		Scanner s = new Scanner(System.in);
		double h = s.nextDouble();
		double n = s.nextDouble();
		double m =0;
		for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		}
		if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		
	}
} public class Main {
	public static void main(String[]args) {
		Scanner s = new Scanner(System.in);
		double h = s.nextDouble();
		double n = s.nextDouble();
		double m =0;
		for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		}
		if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[]args) {
		Scanner s = new Scanner(System.in);
		double h = s.nextDouble();
		double n = s.nextDouble();
		double m =0;
		for(int i = 0;i<n;i++) {
			m += s.nextDouble();
		}
		if(m>=h) {
			System.out.print("Yes");
		}else {
			System.out.print("No");
		}
		
	}
}

