#abc204b. [abc204_b]Nuts

[abc204_b]Nuts

Problem Statement

There are NN trees. The ii-th tree bears AiA_i nuts.

Chipmunk will harvest nuts from the trees in the following manner:

  • From a tree with 1010 or fewer nuts, she does not take nuts.
  • From a tree with more than 1010 nuts, she takes all but 1010 nuts.

Find the total number of nuts Chipmunk will take from the trees.

Constraints

  • 1leqNleq10001 \\leq N \\leq 1000
  • 0leqAileq10000 \\leq A_i \\leq 1000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN A1A_1 ldots\\ldots ANA_N

Output

Print the answer.


Sample Input 1

3
6 17 28

Sample Output 1

25

From the three trees, Chipmunk will take 00, 77, and 1818 nuts, for a total of 2525 nuts.


Sample Input 2

4
8 9 10 11

Sample Output 2

1