#include <bits/stdc++.h>
using namespace std;

const int64_t MOD=1e9+7;

int main(){

  int H,W,K;
  cin>>H>>W>>K;
  vector<int64_t> a(10,0);
  a[0]=1;
  a[1]=1;
  a[2]=2;
  for(int i=3;i<=10;++i) a[i]=a[i-1]+a[i-2];

  if(W==1) cout<<1<<endl;
  else{
  vector<vector<int64_t>> dp(W+1,vector<int64_t>(H+1));
  dp[1][0]=1;
  for(int j=1;j<=H;++j){
    for(int i=1;i<=W;++i){
      if(i==1) dp[1][j]=dp[1][j-1]*a[W-1]+dp[2][j-1]*a[W-2];
      else if(i==W) dp[W][j]=dp[W][j-1]*a[W-1]+dp[W-1][j-1]*a[W-2];
      else dp[i][j]=dp[i][j-1]*a[i-1]*a[W-i]+dp[i-1][j-1]*a[W-i]*a[max(0,i-2)]+dp[i+1][j-1]*a[W-i-1]*a[i-1];
      dp[i][j]%=MOD;
    }
  }
    cout<<dp[K][H]<<endl;
  }


}