fork download
  1. N=int(input())
  2. s=1
  3. for i in range (1,N+1):
  4. s*=i
  5. print(s)
Success #stdin #stdout 0.08s 14120KB
stdin
1
2
3
4
5
stdout
1