#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
#define MOD 1000000007
#define INF 0x3f3f3f3f
#define INFL 0x3f3f3f3f3f3f3f3f
#define EPS (1e-10)
using namespace std;
typedef long long ll;
typedef pair<int,int>P;

ll ppow(ll a,ll b){
	ll res=1;
	while(b){
		if(b&1)res=(res*a)%MOD;
		a=(a*a)%MOD;
		b>>=1;
	}
	return res;
}
ll dp[200][10];
signed main(){
	int h,w,k;cin>>h>>w>>k;
	dp[0][0]=1;
	rep(i,h){
		rep(j,w){
			rep(k,1<<(w-1)){
				bool flag=true;
				int c=j;
				rep(t,w-1){
					if(k>>t&1){
						if(t&&(k>>(t-1)&1)){
							flag=false;break;
						}
						if(t==j-1)c=j-1;
						else if(t==j)c=j+1;
					}
				}
				if(flag){
					(dp[i+1][c]+=dp[i][j])%=MOD;
				}
			}
		}
	}
	cout<<dp[h][k-1]<<endl;
}