import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int physical = sc.nextInt();       //体力
		int type = sc.nextInt();            //技の種類
		int technique[] = new int[type];  //技の配列
		//技の値を入力し、都度体力から引く
		for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		}
		//体力が0以下か判断
		System.out.print(physical<=0 ? "Yes" : "No");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int physical = sc.nextInt();       //体力
		int type = sc.nextInt();            //技の種類
		int technique[] = new int[type];  //技の配列
		//技の値を入力し、都度体力から引く
		for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		}
		//体力が0以下か判断
		System.out.print(physical<=0 ? "Yes" : "No");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int physical = sc.nextInt();       //体力
		int type = sc.nextInt();            //技の種類
		int technique[] = new int[type];  //技の配列
		//技の値を入力し、都度体力から引く
		for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		}
		//体力が0以下か判断
		System.out.print(physical<=0 ? "Yes" : "No");
	} main {
		Scanner sc = new Scanner(System.in);
		int physical = sc.nextInt();       //体力
		int type = sc.nextInt();            //技の種類
		int technique[] = new int[type];  //技の配列
		//技の値を入力し、都度体力から引く
		for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		}
		//体力が0以下か判断
		System.out.print(physical<=0 ? "Yes" : "No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int physical = sc.nextInt(); physical sc.nextInt() sc.nextInt sc int type = sc.nextInt(); type sc.nextInt() sc.nextInt sc int technique[] = new int[type]; technique new int[type] type for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		} int i=0 ; int i=0 ; i 0 i<type i type i++ i++ i {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		} {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		} technique[i] = sc.nextInt() technique[i] technique i sc.nextInt() sc.nextInt sc physical -= technique[i] physical technique[i] technique i System.out.print(physical<=0 ? "Yes" : "No") System.out.print System.out System System.out physical<=0 ? "Yes" : "No" physical<=0 physical 0 "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int physical = sc.nextInt();       //体力
		int type = sc.nextInt();            //技の種類
		int technique[] = new int[type];  //技の配列
		//技の値を入力し、都度体力から引く
		for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		}
		//体力が0以下か判断
		System.out.print(physical<=0 ? "Yes" : "No");
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int physical = sc.nextInt();       //体力
		int type = sc.nextInt();            //技の種類
		int technique[] = new int[type];  //技の配列
		//技の値を入力し、都度体力から引く
		for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		}
		//体力が0以下か判断
		System.out.print(physical<=0 ? "Yes" : "No");
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int physical = sc.nextInt();       //体力
		int type = sc.nextInt();            //技の種類
		int technique[] = new int[type];  //技の配列
		//技の値を入力し、都度体力から引く
		for(int i=0 ; i<type ; i++) {
			technique[i] = sc.nextInt();
			physical -= technique[i];
		}
		//体力が0以下か判断
		System.out.print(physical<=0 ? "Yes" : "No");
	}
}