import java.util.*;
public class Main
{
  public static void main(String[] args)
  {
    Scanner ob=new Scanner(System.in);
    int h=ob.nextInt();
    int a=ob.nextInt();
    int t=0;
    for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    }
    if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} import java.util.*; util.* java public class Main
{
  public static void main(String[] args)
  {
    Scanner ob=new Scanner(System.in);
    int h=ob.nextInt();
    int a=ob.nextInt();
    int t=0;
    for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    }
    if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} Main public static void main(String[] args)
  {
    Scanner ob=new Scanner(System.in);
    int h=ob.nextInt();
    int a=ob.nextInt();
    int t=0;
    for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    }
    if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No");
  } main {
    Scanner ob=new Scanner(System.in);
    int h=ob.nextInt();
    int a=ob.nextInt();
    int t=0;
    for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    }
    if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No");
  } Scanner ob=new Scanner(System.in); ob new Scanner(System.in) int h=ob.nextInt(); h ob.nextInt() ob.nextInt ob int a=ob.nextInt(); a ob.nextInt() ob.nextInt ob int t=0; t 0 for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    } int i=1; int i=1; i 1 i<=a i a i++ i++ i {
      int c=ob.nextInt();
      t=t+c;
    } {
      int c=ob.nextInt();
      t=t+c;
    } int c=ob.nextInt(); c ob.nextInt() ob.nextInt ob t=t+c t t+c t c if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No"); t>=h t h System.out.println("Yes") System.out.println System.out System System.out "Yes" 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)
  {
    Scanner ob=new Scanner(System.in);
    int h=ob.nextInt();
    int a=ob.nextInt();
    int t=0;
    for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    }
    if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} public class Main
{
  public static void main(String[] args)
  {
    Scanner ob=new Scanner(System.in);
    int h=ob.nextInt();
    int a=ob.nextInt();
    int t=0;
    for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    }
    if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
} Main
import java.util.*;
public class Main
{
  public static void main(String[] args)
  {
    Scanner ob=new Scanner(System.in);
    int h=ob.nextInt();
    int a=ob.nextInt();
    int t=0;
    for(int i=1;i<=a;i++)
    {
      int c=ob.nextInt();
      t=t+c;
    }
    if(t>=h)
      System.out.println("Yes");
    else
      System.out.println("No");
  }
}