import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp   = scanner.nextLine().split(" ");
		int h = Integer.parseInt(temp[0]);
		int n = Integer.parseInt(temp[1]);
		String[] temp2  = scanner.nextLine().split(" ");
		int sum = 0;

		for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		}

		System.out.println("No");


	}

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

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp   = scanner.nextLine().split(" ");
		int h = Integer.parseInt(temp[0]);
		int n = Integer.parseInt(temp[1]);
		String[] temp2  = scanner.nextLine().split(" ");
		int sum = 0;

		for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		}

		System.out.println("No");


	}

} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp   = scanner.nextLine().split(" ");
		int h = Integer.parseInt(temp[0]);
		int n = Integer.parseInt(temp[1]);
		String[] temp2  = scanner.nextLine().split(" ");
		int sum = 0;

		for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		}

		System.out.println("No");


	} main {

		Scanner scanner = new Scanner(System.in);
		String[] temp   = scanner.nextLine().split(" ");
		int h = Integer.parseInt(temp[0]);
		int n = Integer.parseInt(temp[1]);
		String[] temp2  = scanner.nextLine().split(" ");
		int sum = 0;

		for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		}

		System.out.println("No");


	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] temp   = scanner.nextLine().split(" "); temp scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int h = Integer.parseInt(temp[0]); h Integer.parseInt(temp[0]) Integer.parseInt Integer temp[0] temp 0 int n = Integer.parseInt(temp[1]); n Integer.parseInt(temp[1]) Integer.parseInt Integer temp[1] temp 1 String[] temp2  = scanner.nextLine().split(" "); temp2 scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int sum = 0; sum 0 for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		} {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		} sum += Integer.parseInt(temp2[i]) sum Integer.parseInt(temp2[i]) Integer.parseInt Integer temp2[i] temp2 i if(h <= sum ) {

				System.out.println("Yes");
				return;

			} h <= sum h sum {

				System.out.println("Yes");
				return;

			} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; System.out.println("No") System.out.println System.out System System.out "No" String[] args args public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp   = scanner.nextLine().split(" ");
		int h = Integer.parseInt(temp[0]);
		int n = Integer.parseInt(temp[1]);
		String[] temp2  = scanner.nextLine().split(" ");
		int sum = 0;

		for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		}

		System.out.println("No");


	}

} public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp   = scanner.nextLine().split(" ");
		int h = Integer.parseInt(temp[0]);
		int n = Integer.parseInt(temp[1]);
		String[] temp2  = scanner.nextLine().split(" ");
		int sum = 0;

		for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		}

		System.out.println("No");


	}

} Main
import java.util.Scanner;

public class Main{

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String[] temp   = scanner.nextLine().split(" ");
		int h = Integer.parseInt(temp[0]);
		int n = Integer.parseInt(temp[1]);
		String[] temp2  = scanner.nextLine().split(" ");
		int sum = 0;

		for(int i = 0; i < n; i++) {

			sum += Integer.parseInt(temp2[i]);

			if(h <= sum ) {

				System.out.println("Yes");
				return;

			}

		}

		System.out.println("No");


	}

}