let nk = readLine()!.split(separator: " ").map{Int($0)!} let (n,k) = (nk[0],nk[1]) let arr = readLine()!.split(separator: " ").map{Int($0)!} var cnt = 0 func loop(_ a: Int, _ sum: Int, _ k: Int){ if k == 0{ if sum % 998244352 <= sum % 998{ cnt += 1 } }else{ for i in a...(n-k){ loop(i+1,sum+arr[i],k-1) } } } loop(0,0,k) print(cnt % 998)