{"raw_statement":[{"iden":"problem statement","content":"You are given an integer sequence of length $N$: $A=(A_1,A_2,\\dots,A_N)$.\nFind the $K$ smallest positive integers $X$ that satisfy the following condition.\n\n*   There is **no** non-empty (not necessarily contiguous) subsequence of $A$ whose elements sum to $X$."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 60$\n*   $1 \\leq K \\leq 1000$\n*   $1 \\leq A_i \\leq 10^{15}$\n*   All input values are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$ $K$\n$A_1$ $A_2$ $\\dots$ $A_N$"},{"iden":"sample input 1","content":"3 3\n1 2 5"},{"iden":"sample output 1","content":"4 9 10\n\nThe subsequences of $A$ are $(1),(2),(1,2),(5),(1,5),(2,5),(1,2,5)$, and their respective sums are $1,2,3,5,6,7,8$. Therefore, for $X=1,2,3,5,6,7,8$, there are subsequences of $A$ whose elements sum to $X$.\nOn the other hand, for $X=4,9,10$, there is no subsequence of $A$ whose elements sum to $X$."},{"iden":"sample input 2","content":"20 10\n324 60 1 15 60 15 1 60 319 1 327 1 2 60 2 345 1 2 2 15"},{"iden":"sample output 2","content":"14 29 44 59 74 89 104 119 134 149"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}