#include <array>
#include <numeric>
#include <iostream>
int main()
{
std::array<int, 5> a = {1, 3, 5, 7, 9};
int tage = 0;
auto it = a.begin();
int sum = std::accumulate(it, it+3, tage);
std::cout << sum << '\n';
}
I2luY2x1ZGUgPGFycmF5PgojaW5jbHVkZSA8bnVtZXJpYz4KI2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgbWFpbigpCnsKICAgIHN0ZDo6YXJyYXk8aW50LCA1PiBhID0gezEsIDMsIDUsIDcsIDl9OwogICAgaW50IHRhZ2UgPSAwOwoKICAgIGF1dG8gaXQgPSBhLmJlZ2luKCk7CiAgICBpbnQgc3VtID0gc3RkOjphY2N1bXVsYXRlKGl0LCBpdCszLCB0YWdlKTsKCiAgICBzdGQ6OmNvdXQgPDwgc3VtIDw8ICdcbic7Cn0K