import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i=0;i<b;i++){a-=sc.nextInt();}
		String s = "Yes";
        if(a>0){s = "No";}
		System.out.println(s);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i=0;i<b;i++){a-=sc.nextInt();}
		String s = "Yes";
        if(a>0){s = "No";}
		System.out.println(s);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i=0;i<b;i++){a-=sc.nextInt();}
		String s = "Yes";
        if(a>0){s = "No";}
		System.out.println(s);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i=0;i<b;i++){a-=sc.nextInt();}
		String s = "Yes";
        if(a>0){s = "No";}
		System.out.println(s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc for (int i=0;i<b;i++){a-=sc.nextInt();} int i=0; int i=0; i 0 i<b i b i++ i++ i {a-=sc.nextInt();} {a-=sc.nextInt();} a-=sc.nextInt() a sc.nextInt() sc.nextInt sc String s = "Yes"; s "Yes" if(a>0){s = "No";} a>0 a 0 {s = "No";} s = "No" s "No" System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i=0;i<b;i++){a-=sc.nextInt();}
		String s = "Yes";
        if(a>0){s = "No";}
		System.out.println(s);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i=0;i<b;i++){a-=sc.nextInt();}
		String s = "Yes";
        if(a>0){s = "No";}
		System.out.println(s);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
        int b = sc.nextInt();
        for (int i=0;i<b;i++){a-=sc.nextInt();}
		String s = "Yes";
        if(a>0){s = "No";}
		System.out.println(s);
	}
}
