import std.stdio,std.bigint;void main(){BigInt a;for(int n;~scanf("%d",&n);writeln(a))for(a=1;n;)a*=n--;}