program test
implicit none

integer(8) :: h,w,k,i,j,ans,big=1d10+7
integer(8) :: go(0:10,3)=0,br_a(0:10),br_b(0:10),dp(0:200,0:10)=0

read(*,*) h,w,k

!最後に橋あり→a,なし→b

br_a(0)=0
br_b(0)=1

br_a(1)=0
br_b(1)=1

br_a(2)=1
br_b(2)=1

do i=3,w
	br_a(i) = br_b(i-1)
	br_b(i) = mod(br_b(i-1) + br_a(i-1),big)
enddo

!左に行く
do i=1,w
	if(i==1) then
		go(i,1) = 0
	else
		go(i,1) = mod(br_b(i-1) * br_b(w-i),big)
	endif
enddo

!右に行く
do i=1,w
	go(i,3) = go(w+1-i,1)
enddo

!どちらでもない
do i=1,w
	go(i,2) = mod((br_a(w)+br_b(w)) - go(i,1) - go(i,3),big)
enddo

!とりあえずDPっしょ
dp(0,1)=1
do i=1,h
	do j=1,w
		dp(i,j) = mod(dp(i-1,j-1)*go(j-1,3) +dp(i-1,j)*go(j,2) +dp(i-1,j+1)*go(j+1,1),big)
	enddo
enddo

write(*,*) dp(h,k)

end program