#Lutece0820. Round Table

Round Table

Migrated from Lutece 820 Round Table

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

I have mm little buddies, and tonight we will have a fancy dinner in my room.

Fortunately, I have a round table which is large enough for all my little buddies. (As for me, I will not sit in the round table for some reasons) And the round table is so large that I will not let my little buddies sit shoulder to shoulder.

That means I will select mm seats from nn seats, and there maximal length of consecutive seats in the original round table won't be larger than or equal to kk. I want know how many different ways I can choose.

Here is one more thing, two ways are considered the same if and only if one can be obtained by rotation.

title

The answer may be very large so the answer should modulo 109+710^9+7.

Input

The first line has a number TT (T200T\leq 200) , indicating the number of test cases.

Next each line contain three integer nn, mm, kk (1n1051\leq n\leq 10^5, 1m1051\leq m\leq 10^5, 2k1052\leq k\leq 10^5, mnm\leq n).

Output

For every case, you should output Case #t: at first, without quotes. The tt is the case number starting from 11.

Then follows the answer, See the sample for more details.

Samples

3
3 1 2
5 2 2
8 3 2
Case #1: 1
Case #2: 1
Case #3: 2

Resources

2013 ACM/ICPC Asia Regional Chengdu Online