#include <bits/stdc++.h>
using namespace std;
int H,W,K,dp[110][110],i,j,k,m,M=1e9+7;
int main(){
  cin>>H>>W>>K;
  dp[0][1]=1;
  for(i=1;i<=H;++i)for(k=0;k<1<<(W-1);++k)if(!(k&k/2))for(m=k<<1,j=1;j<=W;++j)(dp[i][j]+=dp[i-1][m>>j&1?j+1:m>>(j-1)&1?j-1:j])%=M;
  cout<<dp[H][K]<<endl;
  return 0;
}
