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

public class Main {
	
	public static void main(String args[]) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] parts1 = br.readLine().split(" ");
		String[] parts2 = br.readLine().split(" ");
		
		int H = Integer.parseInt(parts1[0]);
		int N = Integer.parseInt(parts1[1]);
		
		int s = 0;
		for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		}
		
		if(s>=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 {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] parts1 = br.readLine().split(" ");
		String[] parts2 = br.readLine().split(" ");
		
		int H = Integer.parseInt(parts1[0]);
		int N = Integer.parseInt(parts1[1]);
		
		int s = 0;
		for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		}
		
		if(s>=H) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
			
	}

} Main public static void main(String args[]) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] parts1 = br.readLine().split(" ");
		String[] parts2 = br.readLine().split(" ");
		
		int H = Integer.parseInt(parts1[0]);
		int N = Integer.parseInt(parts1[1]);
		
		int s = 0;
		for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		}
		
		if(s>=H) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
			
	} main {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] parts1 = br.readLine().split(" ");
		String[] parts2 = br.readLine().split(" ");
		
		int H = Integer.parseInt(parts1[0]);
		int N = Integer.parseInt(parts1[1]);
		
		int s = 0;
		for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		}
		
		if(s>=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[] parts1 = br.readLine().split(" "); parts1 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " String[] parts2 = br.readLine().split(" "); parts2 br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int H = Integer.parseInt(parts1[0]); H Integer.parseInt(parts1[0]) Integer.parseInt Integer parts1[0] parts1 0 int N = Integer.parseInt(parts1[1]); N Integer.parseInt(parts1[1]) Integer.parseInt Integer parts1[1] parts1 1 int s = 0; s 0 for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		} int i = 0; int i = 0; i 0 i < parts2.length i parts2.length parts2 parts2.length i++ i++ i {
			s+=Integer.parseInt(parts2[i]);
		} {
			s+=Integer.parseInt(parts2[i]);
		} s+=Integer.parseInt(parts2[i]) s Integer.parseInt(parts2[i]) Integer.parseInt Integer parts2[i] parts2 i if(s>=H) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} s>=H s 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 {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] parts1 = br.readLine().split(" ");
		String[] parts2 = br.readLine().split(" ");
		
		int H = Integer.parseInt(parts1[0]);
		int N = Integer.parseInt(parts1[1]);
		
		int s = 0;
		for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		}
		
		if(s>=H) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
			
	}

} public class Main {
	
	public static void main(String args[]) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] parts1 = br.readLine().split(" ");
		String[] parts2 = br.readLine().split(" ");
		
		int H = Integer.parseInt(parts1[0]);
		int N = Integer.parseInt(parts1[1]);
		
		int s = 0;
		for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		}
		
		if(s>=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 {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		String[] parts1 = br.readLine().split(" ");
		String[] parts2 = br.readLine().split(" ");
		
		int H = Integer.parseInt(parts1[0]);
		int N = Integer.parseInt(parts1[1]);
		
		int s = 0;
		for (int i = 0; i < parts2.length; i++) {
			s+=Integer.parseInt(parts2[i]);
		}
		
		if(s>=H) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
			
	}

}