import java.util.*;

/**
 * @author yamato
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int H = scanner.nextInt();
		int N = scanner.nextInt();
		int i;
		int sum = 0;
		for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		}
		if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		}
		
		
		
	}

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

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int H = scanner.nextInt();
		int N = scanner.nextInt();
		int i;
		int sum = 0;
		for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		}
		if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		}
		
		
		
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int H = scanner.nextInt();
		int N = scanner.nextInt();
		int i;
		int sum = 0;
		for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		}
		if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		}
		
		
		
	} main {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int H = scanner.nextInt();
		int N = scanner.nextInt();
		int i;
		int sum = 0;
		for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		}
		if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		}
		
		
		
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int H = scanner.nextInt(); H scanner.nextInt() scanner.nextInt scanner int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int i; i int sum = 0; sum 0 for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		} i=0; i=0 i 0 i<N i N i++ i++ i {
			sum += scanner.nextInt();;
		} {
			sum += scanner.nextInt();;
		} sum += scanner.nextInt() sum scanner.nextInt() scanner.nextInt scanner if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		} H>sum H sum {
			System.out.print("No");
		} System.out.print("No") System.out.print System.out System System.out "No" {
			System.out.print("Yes");
		} System.out.print("Yes") System.out.print System.out System System.out "Yes" String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int H = scanner.nextInt();
		int N = scanner.nextInt();
		int i;
		int sum = 0;
		for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		}
		if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		}
		
		
		
	}

} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int H = scanner.nextInt();
		int N = scanner.nextInt();
		int i;
		int sum = 0;
		for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		}
		if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		}
		
		
		
	}

} Main
import java.util.*;

/**
 * @author yamato
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int H = scanner.nextInt();
		int N = scanner.nextInt();
		int i;
		int sum = 0;
		for(i=0;i<N;i++) {
			sum += scanner.nextInt();;
		}
		if(H>sum) {
			System.out.print("No");
		}else {
			System.out.print("Yes");
		}
		
		
		
	}

}

