#K85842. Cookie Batch Production

    ID: 36731 Type: Default 1000ms 256MiB

Cookie Batch Production

Mila is planning to produce multiple batches of cookies. Each batch requires a certain number of ingredients. Given the number of batches, an array representing the number of ingredients required for each batch, and the total number of available ingredients, determine whether Mila can produce all batches.

You need to check if the following inequality holds:

\(\sum_{i=1}^{n} a_i \leq A\)

where \(n\) is the number of batches, \(a_i\) is the ingredients required for the \(i^{th}\) batch, and \(A\) is the total available ingredients. If the inequality holds, output "Yes"; otherwise, output "No".

inputFormat

The input is given via standard input (stdin) and has the following format:

  1. The first line contains an integer n representing the number of batches.
  2. The second line contains n space-separated integers, where each integer represents the number of ingredients required for a batch.
  3. The third line contains an integer representing the total number of available ingredients.

outputFormat

Output a single line to standard output (stdout) containing "Yes" if all batches can be produced with the available ingredients, or "No" otherwise.

## sample
3
2 4 3
10
Yes