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

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int h = Integer.parseInt(str[0]);
    int n = Integer.parseInt(str[1]);
    String[] a = in.readLine().split(" ");
    int[] a_array = new int[n];
    for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    }
    System.out.println(h<=0?"Yes":"No");
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int h = Integer.parseInt(str[0]);
    int n = Integer.parseInt(str[1]);
    String[] a = in.readLine().split(" ");
    int[] a_array = new int[n];
    for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    }
    System.out.println(h<=0?"Yes":"No");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int h = Integer.parseInt(str[0]);
    int n = Integer.parseInt(str[1]);
    String[] a = in.readLine().split(" ");
    int[] a_array = new int[n];
    for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    }
    System.out.println(h<=0?"Yes":"No");
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int h = Integer.parseInt(str[0]);
    int n = Integer.parseInt(str[1]);
    String[] a = in.readLine().split(" ");
    int[] a_array = new int[n];
    for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    }
    System.out.println(h<=0?"Yes":"No");
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int h = Integer.parseInt(str[0]); h Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int n = Integer.parseInt(str[1]); n Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 String[] a = in.readLine().split(" "); a in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int[] a_array = new int[n]; a_array new int[n] n for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    } int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    } {
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    } a_array[i] = Integer.parseInt(a[i]) a_array[i] a_array i Integer.parseInt(a[i]) Integer.parseInt Integer a[i] a i h -= a_array[i] h a_array[i] a_array i System.out.println(h<=0?"Yes":"No") System.out.println System.out System System.out h<=0?"Yes":"No" h<=0 h 0 "Yes" "No" String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int h = Integer.parseInt(str[0]);
    int n = Integer.parseInt(str[1]);
    String[] a = in.readLine().split(" ");
    int[] a_array = new int[n];
    for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    }
    System.out.println(h<=0?"Yes":"No");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int h = Integer.parseInt(str[0]);
    int n = Integer.parseInt(str[1]);
    String[] a = in.readLine().split(" ");
    int[] a_array = new int[n];
    for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    }
    System.out.println(h<=0?"Yes":"No");
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    String[] str = in.readLine().split(" ");
    int h = Integer.parseInt(str[0]);
    int n = Integer.parseInt(str[1]);
    String[] a = in.readLine().split(" ");
    int[] a_array = new int[n];
    for(int i = 0; i<n; i++){
      a_array[i] = Integer.parseInt(a[i]);
      h -= a_array[i];
    }
    System.out.println(h<=0?"Yes":"No");
  }
}