AT_awc0005_a 倍数の報酬

Description

Takahashi is in charge of accounting at his company and is managing this month's bonus payments to employees. The company has $ N $ employees, and each employee has a compensation amount determined by their performance. The compensation amount for the $ i $ -th employee is $ P_i $ yen. The company president gave the following instruction: "I would like to give a special allowance to employees whose compensation amount is a multiple of $ K $ . First, please tell me the total of the compensation amounts for the applicable employees." Help Takahashi find the total of the compensation amounts for employees whose compensation amount is a multiple of $ K $ (that is, $ P_i $ is divisible by $ K $ ). If there are no such employees, the total is $ 0 $ .

Input Format

> $ N $ $ K\\$ > $ P_1 $ $ P_2 $ $ \ldots $ $ P_N $ - The first line contains an integer $ N $ representing the number of employees and an integer $ K $ used for the divisibility check, separated by a space. - The second line contains $ N $ integers $ P_1, P_2, \ldots, P_N $ representing the compensation amounts of each employee, separated by spaces.

Output Format

Print the total of the compensation amounts for employees whose compensation amount is a multiple of $ K $ , on a single line.

Explanation/Hint

### Constraints - $ 1 \leq N \leq 2 \times 10^5 $ - $ 1 \leq K \leq 10^9 $ - $ 1 \leq P_i \leq 10^9 $ - All inputs are integers