
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] tmpArray = br.readLine().split(" ");
		
		int h = Integer.parseInt(tmpArray[0]);
		int n = Integer.parseInt(tmpArray[1]);
		
		int a[] = new int[n];
		tmpArray = br.readLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		}
		
		if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] tmpArray = br.readLine().split(" ");
		
		int h = Integer.parseInt(tmpArray[0]);
		int n = Integer.parseInt(tmpArray[1]);
		
		int a[] = new int[n];
		tmpArray = br.readLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		}
		
		if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] tmpArray = br.readLine().split(" ");
		
		int h = Integer.parseInt(tmpArray[0]);
		int n = Integer.parseInt(tmpArray[1]);
		
		int a[] = new int[n];
		tmpArray = br.readLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		}
		
		if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] tmpArray = br.readLine().split(" ");
		
		int h = Integer.parseInt(tmpArray[0]);
		int n = Integer.parseInt(tmpArray[1]);
		
		int a[] = new int[n];
		tmpArray = br.readLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		}
		
		if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] tmpArray = br.readLine().split(" "); tmpArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int h = Integer.parseInt(tmpArray[0]); h Integer.parseInt(tmpArray[0]) Integer.parseInt Integer tmpArray[0] tmpArray 0 int n = Integer.parseInt(tmpArray[1]); n Integer.parseInt(tmpArray[1]) Integer.parseInt Integer tmpArray[1] tmpArray 1 int a[] = new int[n]; a new int[n] n tmpArray = br.readLine().split(" ") tmpArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int sum = 0; sum 0 for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		} {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		} a[i] = Integer.parseInt(tmpArray[i]) a[i] a i Integer.parseInt(tmpArray[i]) Integer.parseInt Integer tmpArray[i] tmpArray i sum += a[i] sum a[i] a i if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		} sum >= h sum h {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} 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) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] tmpArray = br.readLine().split(" ");
		
		int h = Integer.parseInt(tmpArray[0]);
		int n = Integer.parseInt(tmpArray[1]);
		
		int a[] = new int[n];
		tmpArray = br.readLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		}
		
		if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] tmpArray = br.readLine().split(" ");
		
		int h = Integer.parseInt(tmpArray[0]);
		int n = Integer.parseInt(tmpArray[1]);
		
		int a[] = new int[n];
		tmpArray = br.readLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		}
		
		if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] tmpArray = br.readLine().split(" ");
		
		int h = Integer.parseInt(tmpArray[0]);
		int n = Integer.parseInt(tmpArray[1]);
		
		int a[] = new int[n];
		tmpArray = br.readLine().split(" ");
		
		int sum = 0;
		for(int i = 0; i < n ; i++) {
			a[i] = Integer.parseInt(tmpArray[i]);
			sum += a[i];
		}
		
		if(sum >= h) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}

}
