#include <bits/stdc++.h>   using namespace std;   int main() {     int n, k, sum = 0, s[100005], ans[100005], an = 0;     scanf( %d%d , &n, &k);     for (int i = 1; i <= n; i++) {       scanf( %d , &s[i]);       sum += s[i];     }     if (sum % k) {       printf( No );       return 0;     }     int m = sum / k;     int now = 0, len = 0;     for (int i = 1; i <= n; i++) {       if (now + s[i] > m) {         printf( No );         return 0;       }       now += s[i];       len++;       if (now == m) {         ans[++an] = len;         now = len = 0;       }     }     printf( Yes n );     for (int i = 1; i <= k; i++) printf( %d  , ans[i]);     return 0;   }   