import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int h = kb.nextInt();
		int n = kb.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		}
		for (int e : a) {
			h -= e;
		}
		if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No");
		kb.close();
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int h = kb.nextInt();
		int n = kb.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		}
		for (int e : a) {
			h -= e;
		}
		if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No");
		kb.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int h = kb.nextInt();
		int n = kb.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		}
		for (int e : a) {
			h -= e;
		}
		if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No");
		kb.close();
	} main {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int h = kb.nextInt();
		int n = kb.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		}
		for (int e : a) {
			h -= e;
		}
		if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No");
		kb.close();
	} Scanner kb = new Scanner(System.in); kb new Scanner(System.in) int h = kb.nextInt(); h kb.nextInt() kb.nextInt kb int n = kb.nextInt(); n kb.nextInt() kb.nextInt kb int[] a = new int[n]; a new int[n] n for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int j = kb.nextInt();
			a[i] = j;
		} {
			int j = kb.nextInt();
			a[i] = j;
		} int j = kb.nextInt(); j kb.nextInt() kb.nextInt kb a[i] = j a[i] a i j for (int e : a) {
			h -= e;
		} int e a {
			h -= e;
		} {
			h -= e;
		} h -= e h e if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No"); h <= 0 h 0 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" kb.close() kb.close kb String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int h = kb.nextInt();
		int n = kb.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		}
		for (int e : a) {
			h -= e;
		}
		if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No");
		kb.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int h = kb.nextInt();
		int n = kb.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		}
		for (int e : a) {
			h -= e;
		}
		if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No");
		kb.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		int h = kb.nextInt();
		int n = kb.nextInt();
		int[] a = new int[n];
		for (int i = 0; i < n; i++) {
			int j = kb.nextInt();
			a[i] = j;
		}
		for (int e : a) {
			h -= e;
		}
		if (h <= 0)
			System.out.println("Yes");
		else
			System.out.println("No");
		kb.close();
	}

}
