#include <iostream>

int next(int value) {
    return value + 1;
}

int twice_next(int value) {
    int first{next(value)};
    int second{next(first)};
    return second;
}

int main() {
    int result{twice_next(4)};
    std::cout << result << '\n';
    int again{twice_next(0)};
    std::cout << again << '\n';
    return 0;
}
