import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}

	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int A = sc.nextInt();
		int sum = 0;
		for (int i = 0; i < A; i++) {
			sum += sc.nextInt();
		}
		
		return sum >= H ? "Yes" : "No";
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}

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

	public static void main(String[] args) {
		System.out.println(solve());
	}

	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int A = sc.nextInt();
		int sum = 0;
		for (int i = 0; i < A; i++) {
			sum += sc.nextInt();
		}
		
		return sum >= H ? "Yes" : "No";
	}
} public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}

	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int A = sc.nextInt();
		int sum = 0;
		for (int i = 0; i < A; i++) {
			sum += sc.nextInt();
		}
		
		return sum >= H ? "Yes" : "No";
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		System.out.println(solve());
	}

	public static String solve() {
		Scanner sc = new Scanner(System.in);
		int H = sc.nextInt();
		int A = sc.nextInt();
		int sum = 0;
		for (int i = 0; i < A; i++) {
			sum += sc.nextInt();
		}
		
		return sum >= H ? "Yes" : "No";
	}
}
