Знайдіть добуток#11434

Знайдіть добуток (Розбір)

Python is good choice for computing the expression , We'd like to compute the following expression

Since n \le 1000 then the program is efficient enough and the precision will be good enough and sufficient to solve the problem

Complexity

n=int(input())
p=1
for i in range(1,n+1):
    p*=(1+(1/i))
print(p)