#include <iostream>
long int factorial(int n)
{
if (n <= 1)
return n;
return n*factorial(n-1);
}
int main()
{
std::cout << "f(13) = " << factorial (13);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKbG9uZyBpbnQgZmFjdG9yaWFsKGludCBuKQp7CiAgICBpZiAobiA8PSAxKQogICAgICAgIHJldHVybiBuOwogICAgcmV0dXJuIG4qZmFjdG9yaWFsKG4tMSk7Cn0KCmludCBtYWluKCkKewogICAgc3RkOjpjb3V0IDw8ICJmKDEzKSA9ICIgPDwgZmFjdG9yaWFsICgxMyk7Cn0=