k = int(input('Enter k: ')) total = 1 for j in range(1,k+1): total *= j print(total)