#K40582. Minimum Largest Storage Capacity

    ID: 26674 Type: Default 1000ms 256MiB

Minimum Largest Storage Capacity

Minimum Largest Storage Capacity

You are given two lists of integers. The first list represents the capacities of various storage units, although it will not be used for the calculation. The second list represents the daily material requirements for different materials.

Your task is to determine the minimum capacity required for the largest storage unit so that it can store all the materials needed for the day. In other words, you should compute the total material requirement. Mathematically, if the material requirements are given as \(r_1, r_2, \dots, r_m\), you need to output \(\sum_{i=1}^{m} r_i\).

Note: Even though the storage unit capacities are provided, the result solely depends on the total of the material requirements.

inputFormat

The input consists of two lines read from standard input:

  1. The first line contains a list of integers separated by spaces, representing the capacities of the storage units (this list is not used in the computation).
  2. The second line contains a list of integers separated by spaces, representing the daily material requirements.

outputFormat

Output a single integer to standard output. This integer is the total sum of the material requirements, i.e., \(\sum_{i=1}^{m} r_i\), which is also the minimum capacity required for the largest storage unit.

## sample
20 30 10 50 40
15 35 25
75

</p>