eolymp
Competitions

PP1. Week 8. Functions

Recursion - 1

Implement the recursive function:

prb8609.gif

Input

One integer n (0n1000).

Output

Print the value of f(n).

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
Output example #1
15