Recall that the factorial function is defined as follows:
Given integers
Constraints
Subtask 1 [20%]
Subtask 2 [30%]
Subtask 3 [50%]
Input Specification
The first line of the input contains the two integers
Output Specification
The number of values of
Sample Input
Copy
0 2
Sample Output
Copy
14
Comments
In the explanation you imply that natural numbers are 1,2,3, etc. but in the input specification you say
Natural numbers of set
can be 
or 
Wikipedia says there's no agreement on which one is "standard", whether
is included or not.
The set
is used to specify positive numbers only, 
Yes, but this problem's usage of natural numbers isn't consistent which led to confusion.