#K43852. Maximum Expression Value
Maximum Expression Value
Maximum Expression Value
In this problem, you are given a positive integer ( n ). Your task is to compute the maximum possible value of an expression defined as follows:
- If ( n = 1 ), the value is 1.
- Otherwise, for ( n \ge 2 ), the value is
[ 1 + \prod_{i=2}^{n} i = 1 + (2 \times 3 \times \cdots \times n)]
For example, when ( n = 3 ), the expression becomes (1 + (2 \times 3) = 7) and when ( n = 4 ), the answer is (1 + (2 \times 3 \times 4) = 25). Read the input from standard input and print the result to standard output.
inputFormat
A single integer ( n ) (where ( n \ge 1 )) is provided as input on a single line.
outputFormat
Output the maximum value of the expression as defined. The output should be printed on a single line to standard output.## sample
1
1