import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String input2 = sc.nextLine();
        // System.out.println(input);
        String[] inputs = input.split(" ", 0);
        String[] inputs2 = input2.split(" ", 0);
        int hp = Integer.parseInt(inputs[0]);
        int iter = Integer.parseInt(inputs[1]);
        boolean hantei = false;
        for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        }
        if(hp > 0){
            hantei = true;
        }
        if(hantei){
            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);
        String input = sc.nextLine();
        String input2 = sc.nextLine();
        // System.out.println(input);
        String[] inputs = input.split(" ", 0);
        String[] inputs2 = input2.split(" ", 0);
        int hp = Integer.parseInt(inputs[0]);
        int iter = Integer.parseInt(inputs[1]);
        boolean hantei = false;
        for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        }
        if(hp > 0){
            hantei = true;
        }
        if(hantei){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String input2 = sc.nextLine();
        // System.out.println(input);
        String[] inputs = input.split(" ", 0);
        String[] inputs2 = input2.split(" ", 0);
        int hp = Integer.parseInt(inputs[0]);
        int iter = Integer.parseInt(inputs[1]);
        boolean hantei = false;
        for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        }
        if(hp > 0){
            hantei = true;
        }
        if(hantei){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String input2 = sc.nextLine();
        // System.out.println(input);
        String[] inputs = input.split(" ", 0);
        String[] inputs2 = input2.split(" ", 0);
        int hp = Integer.parseInt(inputs[0]);
        int iter = Integer.parseInt(inputs[1]);
        boolean hantei = false;
        for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        }
        if(hp > 0){
            hantei = true;
        }
        if(hantei){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.nextLine(); input sc.nextLine() sc.nextLine sc String input2 = sc.nextLine(); input2 sc.nextLine() sc.nextLine sc String[] inputs = input.split(" ", 0); inputs input.split(" ", 0) input.split input " " 0 String[] inputs2 = input2.split(" ", 0); inputs2 input2.split(" ", 0) input2.split input2 " " 0 int hp = Integer.parseInt(inputs[0]); hp Integer.parseInt(inputs[0]) Integer.parseInt Integer inputs[0] inputs 0 int iter = Integer.parseInt(inputs[1]); iter Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 1 boolean hantei = false; hantei false for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        } int i = 0; int i = 0; i 0 i < iter i iter i++ i++ i {
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        } {
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        } int attack = Integer.parseInt(inputs2[i]); attack Integer.parseInt(inputs2[i]) Integer.parseInt Integer inputs2[i] inputs2 i hp -= attack hp attack if(hp <= 0){
                break;
            } hp <= 0 hp 0 {
                break;
            } break; if(hp > 0){
            hantei = true;
        } hp > 0 hp 0 {
            hantei = true;
        } hantei = true hantei true if(hantei){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        } hantei {
            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 sc = new Scanner(System.in);
        String input = sc.nextLine();
        String input2 = sc.nextLine();
        // System.out.println(input);
        String[] inputs = input.split(" ", 0);
        String[] inputs2 = input2.split(" ", 0);
        int hp = Integer.parseInt(inputs[0]);
        int iter = Integer.parseInt(inputs[1]);
        boolean hantei = false;
        for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        }
        if(hp > 0){
            hantei = true;
        }
        if(hantei){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String input2 = sc.nextLine();
        // System.out.println(input);
        String[] inputs = input.split(" ", 0);
        String[] inputs2 = input2.split(" ", 0);
        int hp = Integer.parseInt(inputs[0]);
        int iter = Integer.parseInt(inputs[1]);
        boolean hantei = false;
        for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        }
        if(hp > 0){
            hantei = true;
        }
        if(hantei){
            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);
        String input = sc.nextLine();
        String input2 = sc.nextLine();
        // System.out.println(input);
        String[] inputs = input.split(" ", 0);
        String[] inputs2 = input2.split(" ", 0);
        int hp = Integer.parseInt(inputs[0]);
        int iter = Integer.parseInt(inputs[1]);
        boolean hantei = false;
        for(int i = 0; i < iter; i++){
            int attack = Integer.parseInt(inputs2[i]);
            hp -= attack;
            if(hp <= 0){
                break;
            }
        }
        if(hp > 0){
            hantei = true;
        }
        if(hantei){
            System.out.println("No");
        }else{
            System.out.println("Yes");
        }
    }
}