int factor(int f) { int k = f; f--; if (f != 0) k *= factor(f); return k; }