Easy Question

2.5

2 votes
Easy
Problem

Barbarian want some candies as gift from his friend shadix on his birthday. Barbarian demands some P candies from shadix. Shadix has his own shop of N different types of candies. But here comes the famous riddler Pundir and he asks in how many different ways he can give candies to Barbarian.

Assuming there are unlimited amount of candies of each type.

Input
The first line contains P and N.

Output
In the output, you need to print the number of ways  for each test case modulo 1000000007.

Constraints
1P50000001N5000000

Sample Input
22 20
Sample Output
128935337
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?