import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int[] A = new int[N];
    for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int sum = 0;
    for(int i=0; i<N; i++) {
      sum += A[i];
    }

    System.out.println(H > sum ? "No" : "Yes");
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int[] A = new int[N];
    for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int sum = 0;
    for(int i=0; i<N; i++) {
      sum += A[i];
    }

    System.out.println(H > sum ? "No" : "Yes");
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int[] A = new int[N];
    for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int sum = 0;
    for(int i=0; i<N; i++) {
      sum += A[i];
    }

    System.out.println(H > sum ? "No" : "Yes");
  } main {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int[] A = new int[N];
    for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int sum = 0;
    for(int i=0; i<N; i++) {
      sum += A[i];
    }

    System.out.println(H > sum ? "No" : "Yes");
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int H = scan.nextInt(); H scan.nextInt() scan.nextInt scan int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int[] A = new int[N]; A new int[N] N for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      A[i] = scan.nextInt();
    } {
      A[i] = scan.nextInt();
    } A[i] = scan.nextInt() A[i] A i scan.nextInt() scan.nextInt scan scan.close() scan.close scan int sum = 0; sum 0 for(int i=0; i<N; i++) {
      sum += A[i];
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      sum += A[i];
    } {
      sum += A[i];
    } sum += A[i] sum A[i] A i System.out.println(H > sum ? "No" : "Yes") System.out.println System.out System System.out H > sum ? "No" : "Yes" H > sum H sum "No" "Yes" String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int[] A = new int[N];
    for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int sum = 0;
    for(int i=0; i<N; i++) {
      sum += A[i];
    }

    System.out.println(H > sum ? "No" : "Yes");
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int[] A = new int[N];
    for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int sum = 0;
    for(int i=0; i<N; i++) {
      sum += A[i];
    }

    System.out.println(H > sum ? "No" : "Yes");
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int H = scan.nextInt();
    int N = scan.nextInt();
    int[] A = new int[N];
    for(int i=0; i<N; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int sum = 0;
    for(int i=0; i<N; i++) {
      sum += A[i];
    }

    System.out.println(H > sum ? "No" : "Yes");
  }
}