import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
		int variousOfAttack = sc.nextInt();
		int sum_attack = 0;
		int[] attack = new int[variousOfAttack];
		for(int i=0; i < variousOfAttack; i++){
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		}
		if(sum_attack < HP){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
		int variousOfAttack = sc.nextInt();
		int sum_attack = 0;
		int[] attack = new int[variousOfAttack];
		for(int i=0; i < variousOfAttack; i++){
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		}
		if(sum_attack < HP){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
		int variousOfAttack = sc.nextInt();
		int sum_attack = 0;
		int[] attack = new int[variousOfAttack];
		for(int i=0; i < variousOfAttack; i++){
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		}
		if(sum_attack < HP){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
		int variousOfAttack = sc.nextInt();
		int sum_attack = 0;
		int[] attack = new int[variousOfAttack];
		for(int i=0; i < variousOfAttack; i++){
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		}
		if(sum_attack < HP){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int HP = sc.nextInt(); HP sc.nextInt() sc.nextInt sc int variousOfAttack = sc.nextInt(); variousOfAttack sc.nextInt() sc.nextInt sc int sum_attack = 0; sum_attack 0 int[] attack = new int[variousOfAttack]; attack new int[variousOfAttack] variousOfAttack for(int i=0; i < variousOfAttack; i++){
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		} int i=0; int i=0; i 0 i < variousOfAttack i variousOfAttack i++ i++ i {
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		} {
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		} attack[i] = sc.nextInt() attack[i] attack i sc.nextInt() sc.nextInt sc sum_attack += attack[i] sum_attack attack[i] attack i if(sum_attack < HP){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		} sum_attack < HP sum_attack HP {
			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" String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int HP = sc.nextInt();
		int variousOfAttack = sc.nextInt();
		int sum_attack = 0;
		int[] attack = new int[variousOfAttack];
		for(int i=0; i < variousOfAttack; i++){
			attack[i] = sc.nextInt();
			sum_attack += attack[i];
		}
		if(sum_attack < HP){
			System.out.println("No");
		}else{
			System.out.println("Yes");
		}
	}
}