import java.util.Scanner;
public class Main{
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int []array=new int[2];
		int sum=0;
		for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		}
		int []arr=new int[array[1]];
		for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		}
		if(sum<array[0])
		  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 sc=new Scanner(System.in);
		int []array=new int[2];
		int sum=0;
		for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		}
		int []arr=new int[array[1]];
		for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		}
		if(sum<array[0])
		  System.out.println("No");
		else
			System.out.println("Yes");
	}
	
} Main public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int []array=new int[2];
		int sum=0;
		for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		}
		int []arr=new int[array[1]];
		for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		}
		if(sum<array[0])
		  System.out.println("No");
		else
			System.out.println("Yes");
	} main {
		Scanner sc=new Scanner(System.in);
		int []array=new int[2];
		int sum=0;
		for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		}
		int []arr=new int[array[1]];
		for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		}
		if(sum<array[0])
		  System.out.println("No");
		else
			System.out.println("Yes");
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int []array=new int[2]; array new int[2] 2 int sum=0; sum 0 for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
			array[i]=sc.nextInt();
		} {
			array[i]=sc.nextInt();
		} array[i]=sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc int []arr=new int[array[1]]; arr new int[array[1]] array[1] array 1 for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		} int i=0; int i=0; i 0 i<array[1] i array[1] array 1 i++ i++ i {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		} {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		} arr[i]=sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc sum=sum+arr[i] sum sum+arr[i] sum arr[i] arr i if(sum<array[0])
		  System.out.println("No");
		else
			System.out.println("Yes"); sum<array[0] sum array[0] array 0 System.out.println("No") System.out.println System.out System System.out "No" 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 sc=new Scanner(System.in);
		int []array=new int[2];
		int sum=0;
		for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		}
		int []arr=new int[array[1]];
		for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		}
		if(sum<array[0])
		  System.out.println("No");
		else
			System.out.println("Yes");
	}
	
} public class Main{
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int []array=new int[2];
		int sum=0;
		for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		}
		int []arr=new int[array[1]];
		for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		}
		if(sum<array[0])
		  System.out.println("No");
		else
			System.out.println("Yes");
	}
	
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		int []array=new int[2];
		int sum=0;
		for(int i=0;i<2;i++) {
			array[i]=sc.nextInt();
		}
		int []arr=new int[array[1]];
		for(int i=0;i<array[1];i++) {
			arr[i]=sc.nextInt();
			sum=sum+arr[i];
		}
		if(sum<array[0])
		  System.out.println("No");
		else
			System.out.println("Yes");
	}
	
}