"""
Ch5 Question 3
Factorials
"""
print("Let's find out the factorials.")
x = int(input("Give me a positive integer: "))
n = 1
answer = 1
while n <= x:
    answer = answer * n
    n += 1
    
print(answer)
