import java.util.*;
import static java.lang.System.*;
import java.math.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int n = sc.nextInt();
		long dam = 0;
		for (int i = 0; i < n; i++)
			dam += sc.nextLong();
		if (dam >= h)
			out.print("Yes");
		else
			out.print("No");

		
	}
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import java.math.*; math.* java public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int n = sc.nextInt();
		long dam = 0;
		for (int i = 0; i < n; i++)
			dam += sc.nextLong();
		if (dam >= h)
			out.print("Yes");
		else
			out.print("No");

		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int n = sc.nextInt();
		long dam = 0;
		for (int i = 0; i < n; i++)
			dam += sc.nextLong();
		if (dam >= h)
			out.print("Yes");
		else
			out.print("No");

		
	} main {
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int n = sc.nextInt();
		long dam = 0;
		for (int i = 0; i < n; i++)
			dam += sc.nextLong();
		if (dam >= h)
			out.print("Yes");
		else
			out.print("No");

		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc long dam = 0; dam 0 for (int i = 0; i < n; i++)
			dam += sc.nextLong(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i dam += sc.nextLong(); dam += sc.nextLong() dam sc.nextLong() sc.nextLong sc if (dam >= h)
			out.print("Yes");
		else
			out.print("No"); dam >= h dam h out.print("Yes") out.print out "Yes" out.print("No") out.print out "No" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int n = sc.nextInt();
		long dam = 0;
		for (int i = 0; i < n; i++)
			dam += sc.nextLong();
		if (dam >= h)
			out.print("Yes");
		else
			out.print("No");

		
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int n = sc.nextInt();
		long dam = 0;
		for (int i = 0; i < n; i++)
			dam += sc.nextLong();
		if (dam >= h)
			out.print("Yes");
		else
			out.print("No");

		
	}
} Main
import java.util.*;
import static java.lang.System.*;
import java.math.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int h = sc.nextInt();
		int n = sc.nextInt();
		long dam = 0;
		for (int i = 0; i < n; i++)
			dam += sc.nextLong();
		if (dam >= h)
			out.print("Yes");
		else
			out.print("No");

		
	}
}