def fac (n) if n==0 then 1 else n*( fac (n-1)) end end puts fac(ARGV[0].to_i)