while(0<1)println{val Array(n,k)=readLine split' 'map(_.toInt) (1<z.sum+:z take k)(0)}