Binomial Coefficient#7245

Binomial Coefficient

0.5 seconds
64 megabytes
Easy

Our hero has been conducting research related to Pascal’s Triangle for about a month. Recently, he encountered a new challenge in his studies. He needs to compute a large number, but he is very busy. Can you help him?

You are given the following binomial:

(a x + b y)^n.

Find the coefficient of the term x^k y^{n-k} in its expansion, modulo 10^9 + 7.

Input

The input consists of four integers: , , , and (1 \le a, b \le 100, 1 \le n \le 10^6, 1 \le k \le \min(n, 10^5)).

Output

Output the coefficient of x^k y^{n-k} in the expansion of (a x + b y)^n, modulo 10^9 + 7.

Examples

Example 1

Loading
Loading