Numbers
Medium
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Develop a program to calculate the number of n-digit numbers where the sum of all digits is equal to m.
Input
The input consists of a single line containing two natural numbers n and m (n < 124, m < 1248).
Output
Output the number of n-digit numbers for which the sum of all digits equals m.
Examples
Input #1
Answer #1
Submissions 293
Acceptance rate 12%