import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		}
		sc.close();
		System.out.println(H>0?"No":"Yes");
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		}
		sc.close();
		System.out.println(H>0?"No":"Yes");
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		}
		sc.close();
		System.out.println(H>0?"No":"Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		}
		sc.close();
		System.out.println(H>0?"No":"Yes");
	} 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[] A = new int[N]; A new int[N] N for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		} int i=0; int i=0; i 0 i<N i N i++ i++ i {
			A[i] = sc.nextInt();
			H=H-A[i];
		} {
			A[i] = sc.nextInt();
			H=H-A[i];
		} A[i] = sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc H=H-A[i] H H-A[i] H A[i] A i sc.close() sc.close sc System.out.println(H>0?"No":"Yes") System.out.println System.out System System.out H>0?"No":"Yes" H>0 H 0 "No" "Yes" 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();
		int[] A = new int[N];
		for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		}
		sc.close();
		System.out.println(H>0?"No":"Yes");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		}
		sc.close();
		System.out.println(H>0?"No":"Yes");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		int[] A = new int[N];
		for(int i=0; i<N; i++) {
			A[i] = sc.nextInt();
			H=H-A[i];
		}
		sc.close();
		System.out.println(H>0?"No":"Yes");
	}

}