#include <bits/stdc++.h>
using namespace std;
long long n, k;
long long a[5010];
long long b[5010][5010];
signed main() {
  cin >> n >> k;
  for (long long i = 0; i < n; i++) cin >> a[i];
  b[0][0] = a[0];
  for (long long i = 0; i < n; i++) {
    for (long long j = i; j < n; j++) {
      if (j == 0)
        b[0][0] = a[0];
      else
        b[i][j] = b[i][j - 1] + a[j];
    }
  }
  return 0;
}
