import std.bigint,std.stdio;void main(){BigInt x=1;foreach(n;1..1001)x*=n;write(x);}