System.in.eachLine{n=1g it.toLong().times{n*=it+1} println n}