Problem I: 元宝

Problem I: 元宝

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

有  个不同重量的金元宝,但你只能拿走其中的  个,请问你最多可以拿走金元宝的重量。

Input

第一行两个正整数 

第二行有  个正整数,表示每个金元宝的重量。



Output

输出最多可以拿走金元宝的重量。

Sample Input Copy

5 3
100 10 50 30 20

Sample Output Copy

180