fun main(args: Array<String>) {
    val (H, W, K) = listOfInt()
    val MOD = 1000000007
    val dp = Array(H + 1) { IntArray(W) }
    dp[0][0] = 1
    for (i in 0 until H) {
        for (j in 0 until W) {
            for (k in 0 until (1 shl (W - 1))) {
                var ok = true
                for (l in 0 until W - 2) {
                    if ((k shr l) and 1 == 1 && (k shr (l + 1)) and 1 == 1) {
                        ok = false
                    }
                }
                if (ok) {
                    if (j >= 1 && (k shr (j - 1)) and 1 == 1) {
                        dp[i + 1][j - 1] += dp[i][j]
                        dp[i + 1][j - 1] %= MOD
                    } else if (j <= W - 2 && (k shr j) and 1 == 1) {
                        dp[i + 1][j + 1] += dp[i][j]
                        dp[i + 1][j + 1] %= MOD
                    } else {
                        dp[i + 1][j] += dp[i][j]
                        dp[i + 1][j] %= MOD
                    }
                }
            }
        }
    }
    println(dp[H][K - 1])
}
fun next() = readLine()!!
fun listOfString() = next().split(" ")
fun listOfInt() = listOfString().map { Integer.parseInt(it) }
