favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

# The amount of n-digit numbers

Two integers n and m are given.

Find the number of n-digit positive integers, which sum of the digits equals to m.

#### Input

Two integers n and m (1n9, 1m81).

#### Output

Print the amount of required numbers.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2 10

Output example #1
9