#include <iostream>
#include <iterator>
#include <numeric>
int main() {
int arr[5] = {100, 80, 60, 40, 20};
std::cout << std::accumulate(arr, std::end(arr), 0) << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aXRlcmF0b3I+CiNpbmNsdWRlIDxudW1lcmljPgoKaW50IG1haW4oKSB7CgogICAgaW50IGFycls1XSA9IHsxMDAsIDgwLCA2MCwgNDAsIDIwfTsKCiAgICBzdGQ6OmNvdXQgPDwgc3RkOjphY2N1bXVsYXRlKGFyciwgc3RkOjplbmQoYXJyKSwgMCkgPDwgc3RkOjplbmRsOwp9