10375: ABC328 —— A - Not Too Hard
[Creator : ]
Description
There is a programming contest with $N$ problems. For each $i = 1, 2, \ldots, N$, the score for the $i$\-th problem is $S_i$.
Print the total score for all problems with a score of $X$ or less.
Print the total score for all problems with a score of $X$ or less.
Input
The input is given from Standard Input in the following format:
```
$N$ $X$
$S_1$ $S_2$ $\ldots$ $S_N$
```
```
$N$ $X$
$S_1$ $S_2$ $\ldots$ $S_N$
```
Output
Print the answer.
Constraints
- All input values are integers.
- $4 \leq N \leq 8$
- $100 \leq S_i \leq 675$
- $100 \leq X \leq 675$
- $4 \leq N \leq 8$
- $100 \leq S_i \leq 675$
- $100 \leq X \leq 675$
Sample 1 Input
6 200
100 675 201 200 199 328
Sample 1 Output
499
Three problems have a score of 200 or less: the first, fourth, and fifth, for a total score of S1+S4+S5=100+200+199=499.
Sample 2 Input
8 675
675 675 675 675 675 675 675 675
Sample 2 Output
5400
Sample 3 Input
8 674
675 675 675 675 675 675 675 675
Sample 3 Output
0