Snuke has decided to play with N cards and a deque (that is, a double-ended queue). Each card shows an integer from 1 through N, and the deque is initially empty.

Snuke will insert the cards at the beginning or the end of the deque one at a time, in order from 1 to N. Then, he will perform the following action N times: take out the card from the beginning or the end of the deque and eat it.

Afterwards, we will construct an integer sequence by arranging the integers written on the eaten cards, in the order they are eaten. Among the sequences that can be obtained in this way, find the number of the sequences such that the K-th element is 1. Print the answer modulo 10^{9} + 7.

Constraints

* 1 ≦ K ≦ N ≦ 2{,}000

Input

The input is given from Standard Input in the following format:


N K


Output

Print the answer modulo 10^{9} + 7.

Examples

Input

2 1


Output

1


Input

17 2


Output

262144


Input

2000 1000


Output

674286644
#include <bits/stdc++.h>
#define cal(a,b) ((a+=b)%=mo)
using namespace std;
const int N=2050,mo=1e9+7;
int f[N][N][2];
int main(){
  int n,k; cin>>n>>k;
  f[n+1][0][0]=1;
  for (int i=n+1; i>1; --i){
    for (int j=n; j>=0; --j) cal(f[i][j][0],f[i][j+1][0]);
    for (int j=0; j<=n; ++j)
      for (int t=0; t<=1; ++t){
	cal(f[i-1][j][0],f[i][j][t]);
	cal(f[i-1][j+1][1],f[i][j][t]);
      }
  }
  int ans=f[1][n-k][0];
  for (int i=1; i<n-k; ++i) cal(ans,ans);
  cout<<ans;
  return 0;
}
