#include <stdio.h>

long f (long n) {
    return( n==0 ? 1 : n * f(n-1) );
    }

main() {
    printf("%ld\n", f(10));
    }