System.in.eachLine{n=1g;for(i=it as int;i;)n*=i--;println n}