solusi codechef faktorial kecil

t=int(input())
for i in range(t):
  x=int(input())
  count=1
  for i in range(x):
    count=count*i
   print(count)
Homeless Hawk