Need help, Combinatorics

Revision en1, by returnA, 2023-09-04 10:07:15

 Keval has forgotten the password to his I-Pad. The password is a 4-digit number where each digit takes a value from 0 to 9. The good thing is that Keval remembers that his password had exactly two unique digits, and each of these digits appeared exactly twice in the password. Keval also remembers that n digits (where, 0 ≤ n ≤ 10) from 0-9 were definitely not used in the password.

Find the number of different possible passwords Keval could have. Note that the password can start with the digit 0

Input constraints 0 ≤ n ≤ 10

Input format The only line of input contains a single integer n, the number of digits which were not used in the password.

Output Format Output a single integer that denotes the number of possible password sequences.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English returnA 2023-09-04 10:07:15 789 Initial revision (published)