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 power[] = new int[N];
		int totalPower = 0;

		for(int i = 0 ;i <= N-1 ;i++) {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		}
		System.out.println((totalPower>=H)? "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 H = sc.nextInt();
		int N = sc.nextInt();
		int power[] = new int[N];
		int totalPower = 0;

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

		for(int i = 0 ;i <= N-1 ;i++) {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		}
		System.out.println((totalPower>=H)? "Yes":"No");
	} main {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int N = sc.nextInt();
		int power[] = new int[N];
		int totalPower = 0;

		for(int i = 0 ;i <= N-1 ;i++) {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		}
		System.out.println((totalPower>=H)? "Yes":"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 power[] = new int[N]; power new int[N] N int totalPower = 0; totalPower 0 for(int i = 0 ;i <= N-1 ;i++) {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		} int i = 0 ; int i = 0 ; i 0 i <= N-1 i N-1 N 1 i++ i++ i {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		} {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		} power[i] = sc.nextInt() power[i] power i sc.nextInt() sc.nextInt sc totalPower = totalPower + power[i] totalPower totalPower + power[i] totalPower power[i] power i System.out.println((totalPower>=H)? "Yes":"No") System.out.println System.out System System.out (totalPower>=H)? "Yes":"No" (totalPower>=H) totalPower H "Yes" "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();
		int power[] = new int[N];
		int totalPower = 0;

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

		for(int i = 0 ;i <= N-1 ;i++) {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		}
		System.out.println((totalPower>=H)? "Yes":"No");
	}
} 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 power[] = new int[N];
		int totalPower = 0;

		for(int i = 0 ;i <= N-1 ;i++) {
			power[i] = sc.nextInt();
			totalPower = totalPower + power[i];
		}
		System.out.println((totalPower>=H)? "Yes":"No");
	}
}

