#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"h,w,k=map(int,input().split())\n"
"p=[sum(('11'in str(bin(j)))^1for j in range(1<<i))for i in range(8)]\n"
"dp=[w*[0]for _ in[0]*-~h]\n"
"dp[0][0]=1\n"
"for i in range(1,h+1):\n"
"    for j in range(w):\n"
"        t=u=0\n"
"        if j:\n"
"            t=p[max(0,j-2)]*p[max(0,w-j-2)]\n"
"            dp[i][j]+=dp[i-1][j-1]*t\n"
"        if j<w-1:\n"
"            u=p[max(0,j-1)]*p[max(0,w-j-3)]\n"
"            dp[i][j]+=dp[i-1][j+1]*u\n"
"        dp[i][j]=(dp[i][j]+dp[i-1][j]*(p[w-1]-t-u))%(10**9+7)\n"
"print(dp[-1][k-1])\n"
"\"";
  system(s);
  return 0;
}            