import java.util.Scanner;

public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int H = Integer.parseInt(scan.next());
		int N = Integer.parseInt(scan.next());
		int num = 0;
		for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		}
		if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int H = Integer.parseInt(scan.next());
		int N = Integer.parseInt(scan.next());
		int num = 0;
		for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		}
		if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		}
	}
} Main public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int H = Integer.parseInt(scan.next());
		int N = Integer.parseInt(scan.next());
		int num = 0;
		for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		}
		if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int H = Integer.parseInt(scan.next());
		int N = Integer.parseInt(scan.next());
		int num = 0;
		for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		}
		if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int H = Integer.parseInt(scan.next()); H Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int N = Integer.parseInt(scan.next()); N Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan int num = 0; num 0 for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			num = num + Integer.parseInt(scan.next());
		} {
			num = num + Integer.parseInt(scan.next());
		} num = num + Integer.parseInt(scan.next()) num num + Integer.parseInt(scan.next()) num Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		} num < H num H {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" { 
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" String args[] args public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int H = Integer.parseInt(scan.next());
		int N = Integer.parseInt(scan.next());
		int num = 0;
		for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		}
		if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		}
	}
} public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int H = Integer.parseInt(scan.next());
		int N = Integer.parseInt(scan.next());
		int num = 0;
		for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		}
		if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main (String args[]) {
		Scanner scan = new Scanner(System.in);
		int H = Integer.parseInt(scan.next());
		int N = Integer.parseInt(scan.next());
		int num = 0;
		for(int i = 0; i < N;i++) {
			num = num + Integer.parseInt(scan.next());
		}
		if(num < H) {
			System.out.println("No");
		} else { 
			System.out.println("Yes");
		}
	}
}