import java.util.Scanner;
public class Main {

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

} import java.util.Scanner; Scanner java.util public class Main {

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

} Main public static void main(String[] args) {
		solve();
	} main {
		solve();
	} solve() solve String[] args args static void solve() {
		Scanner sc = new Scanner(System.in); 
		int h = sc.nextInt();
		int n = sc.nextInt();
		int sum = 0;
		int array[] = new int [n];
		for(int i = 0; i<n; i++) {
			array[i] = sc.nextInt();
			sum+=array[i];
			}
		if(sum>=h) {
			System.out.println("Yes");
		}
		else
			System.out.println("No");
	} solve {
		Scanner sc = new Scanner(System.in); 
		int h = sc.nextInt();
		int n = sc.nextInt();
		int sum = 0;
		int array[] = new int [n];
		for(int i = 0; i<n; i++) {
			array[i] = sc.nextInt();
			sum+=array[i];
			}
		if(sum>=h) {
			System.out.println("Yes");
		}
		else
			System.out.println("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 int sum = 0; sum 0 int array[] = new int [n]; array new int [n] n for(int i = 0; i<n; i++) {
			array[i] = sc.nextInt();
			sum+=array[i];
			} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
			array[i] = sc.nextInt();
			sum+=array[i];
			} {
			array[i] = sc.nextInt();
			sum+=array[i];
			} array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc sum+=array[i] sum array[i] array i if(sum>=h) {
			System.out.println("Yes");
		}
		else
			System.out.println("No"); sum>=h sum h {
			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" public class Main {

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

} public class Main {

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

} Main
import java.util.Scanner;
public class Main {

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

}
