Three integers a, b, c are given. For a given integer n, compute the value of the function:
Four integers a, b, c~(|a|, |b|, |c| \le 1000), n~(0 \le n \le 1000).
Print the value of f(n).
Example 1