import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int H = Integer.parseInt(arr[0]);
        String[] A = reader.readLine().split(" ");
        int accum = 0;
        for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]);
        System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes");
    }
} import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int H = Integer.parseInt(arr[0]);
        String[] A = reader.readLine().split(" ");
        int accum = 0;
        for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]);
        System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes");
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int H = Integer.parseInt(arr[0]);
        String[] A = reader.readLine().split(" ");
        int accum = 0;
        for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]);
        System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes");
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int H = Integer.parseInt(arr[0]);
        String[] A = reader.readLine().split(" ");
        int accum = 0;
        for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]);
        System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes");
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String[] arr = reader.readLine().split(" "); arr reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int H = Integer.parseInt(arr[0]); H Integer.parseInt(arr[0]) Integer.parseInt Integer arr[0] arr 0 String[] A = reader.readLine().split(" "); A reader.readLine().split(" ") reader.readLine().split reader.readLine() reader.readLine reader " " int accum = 0; accum 0 for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]); int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i accum += Integer.parseInt(A[i]); accum += Integer.parseInt(A[i]) accum Integer.parseInt(A[i]) Integer.parseInt Integer A[i] A i System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes") System.out.println System.out System System.out 1 < Math.ceil((double) H / accum) ? "No" : "Yes" 1 < Math.ceil((double) H / accum) 1 Math.ceil((double) H / accum) Math.ceil Math (double) H / accum (double) H accum "No" "Yes" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int H = Integer.parseInt(arr[0]);
        String[] A = reader.readLine().split(" ");
        int accum = 0;
        for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]);
        System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int H = Integer.parseInt(arr[0]);
        String[] A = reader.readLine().split(" ");
        int accum = 0;
        for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]);
        System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes");
    }
} Main
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String[] arr = reader.readLine().split(" ");
        int H = Integer.parseInt(arr[0]);
        String[] A = reader.readLine().split(" ");
        int accum = 0;
        for (int i = 0; i < A.length; i++)
            accum += Integer.parseInt(A[i]);
        System.out.println(1 < Math.ceil((double) H / accum) ? "No" : "Yes");
    }
}