program number_of_amidakuji
  implicit none
  integer(8), parameter :: md = 1000000007_8
  integer :: h, w, k, i, j
  integer(8) :: dp(0:100,0:9) = 0_8, f(-1:9) = 0_8
  dp(0,1) = 1_8
  f(0) = 1_8
  read(*,*) h, w, k
  do i = 1, w
    f(i) = mod(f(i-1)+f(i-2),md)
  end do
  do i = 1, h
    do j = 1, w
      dp(i,j) = mod(mod(f(j-2)*f(w-j)*dp(i-1,j-1),md) &
      & +mod(f(j-1)*f(w-j)*dp(i-1,j),md)+mod(f(j-1)*f(w-j-1)*dp(i-1,j+1),md),md)
    end do
  end do
  write(*,'(i0)') dp(h,k)
end program number_of_amidakuji