func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, m, kol = 0, sum = 0, a;     cin >> n >> m;     for (int i = 0; i < n; i++) {       cin >> a;       if (sum + a > m) {         kol++;         sum = a;       } else         sum += a;     }     cout << kol + 1;   }   