#include int main(){ int n, i, f=1; scanf("%d", &n); i=1; while(i<=n){ f=f*i; i++; } printf("%d\n", f); }