Under construction

Still being built. Things may change

Pirouettes

Time limit1sMemory limit1024 MB

Summary
Count the ways to place K obstacles on the 2N free cells of a room so that a ballerina starting at 0 and taking T unit steps is back at 0.
Level

Medium7 of 10

Topics
Dynamic programming, Combinatorics, Simulation
Solved
No attempts yet

Problem

Given an integer NN, consider a room of length 2×N+22 \times N+2, represented as the interval [−N−1,N+1][-N-1, N+1]. At the center C=0C=0 of the room, a ballerina called Costelina Salopeta starts. She performs TT dancing steps of length 11. The first step goes to the right. The room has 2×N2 \times N integer coordinates where you can place KK obstacles. When the ballerina reaches an obstacle, she trips and performs a pirouette. She then reverses her moving direction, and the obstacle disappears.

You may not place an obstacle at coordinates −N−1-N-1, 00, or N+1N+1. The walls at −N−1-N-1 and N+1N+1 are permanent obstacles that never disappear. The point C=0C=0 is Costelina's starting position.

Given TT, NN, and KK, count the ways to place KK obstacles so that Costelina is back at the starting point CC after TT steps.

Input

The first line contains three integers TT, NN and KK.

Output

Output a single integer, the answer modulo 109+710^9+7.

Constraints

  • 0≤T≤2000 \le T \le 200, TT is even
  • 1≤N≤1001 \le N \le 100
  • 0≤K≤2×N0 \le K \le 2 \times N

Examples2

  1. Example 1

    Input
    6 3 4
    
    Expected output
    7
    
  2. Example 2

    Input
    8 3 1
    
    Expected output
    3