5 lines
88 B
Python
5 lines
88 B
Python
a,b,N = 0,1,int(input())
|
|
for i in range(N) :
|
|
a,b = b,(i*(a+b))%(10**9)
|
|
print(b)
|
|
|