n=int(input()) s=1 j=0 for i in range(1,n+1): s*=i**(n-j) j+=1 print s Mike Code Telegram - t.me/codingsolution_IT 17.6K views11:06