a=int(input()) for i in range(1,a+1): b=int(input()) sum_=1 for c in range(1,i+1): sum_=sum_*c print(sum_)