{"raw_statement":[{"iden":"problem statement","content":"A shop sells $N$ kinds of fruits, Fruit $1, \\ldots, N$, at prices of $p_1, \\ldots, p_N$ yen per item, respectively. (Yen is the currency of Japan.)\nHere, we will choose $K$ kinds of fruits and buy one of each chosen kind. Find the minimum possible total price of those fruits."},{"iden":"constraints","content":"*   $1 \\leq K \\leq N \\leq 1000$\n*   $1 \\leq p_i \\leq 1000$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$ $K$\n$p_1$ $p_2$ $\\ldots$ $p_N$"},{"iden":"sample input 1","content":"5 3\n50 100 80 120 80"},{"iden":"sample output 1","content":"210\n\nThis shop sells Fruit $1$, $2$, $3$, $4$, and $5$ for $50$ yen, $100$ yen, $80$ yen, $120$ yen, and $80$ yen, respectively.\nThe minimum total price for three kinds of fruits is $50 + 80 + 80 = 210$ yen when choosing Fruit $1$, $3$, and $5$."},{"iden":"sample input 2","content":"1 1\n1000"},{"iden":"sample output 2","content":"1000"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}