macro_rules! memo{
    ($memo:ident ( $($max_arg:expr),* ) -> $out:ty) => {
        let mut $memo = &mut memo!(inner $out; $($max_arg),*);
    };
    (inner $out:ty; $max_arg:expr) => {
        vec![None as Option<$out>; $max_arg + 1]
    };
    (inner $out:ty; $max_arg:expr, $($ma:expr),*) => {
        vec![memo!(inner $out; $($ma),*); $max_arg + 1]
    };
}
macro_rules! fn_memo{
    ($fun:ident ( $memo:ident; $($param:ident),* ; $($ex_param:ident : $ty:ty),* ) -> $out:ty $body:block) => {
        fn $fun($memo:&mut fn_memo!(inner $out; $($param),*), $($param : usize),* , $($ex_param : $ty),*) -> $out{
            if $memo$([$param])*.is_none() {
                $memo$([$param])* = Some($body);
            }
            $memo$([$param])*.unwrap()
        }
    };
    (inner $out:ty ; $param:ident) => {
        Vec<Option<$out>>
    };
    (inner $out:ty ; $param:ident, $($p:ident),*) => {
        Vec<fn_memo!(inner $out; $($p),*)>
    };
}

///////////////////////////////////////////////////////

fn solve(src: &str) -> String {
    let mut sc = Scanner::from_str(src);

    let h: usize = sc.read();
    let w: usize = sc.read();
    let k: usize = sc.read();
    let ptn = vec![1, 1, 2, 3, 5, 8, 13, 21, 34];
    let ptn = ptn.iter().map(|&n| Finite(n)).collect();
    // ptn[w] = 幅 w-1 , 高さ 1 のあみだの総数
    memo!{ cm(100, 8) -> Finite };
    format!("{}\n", clc(cm, h, k, w, &ptn))
}
fn_memo! { clc(cm; r, c ; w:usize, ptn:&Vec<Finite>) -> Finite {
    if r == 0 {
        if c == 1 {
            return Finite(1)
        } else {
            return Finite(0)
        }
    }
    let mut ret = ptn[c-1] * ptn[w-c] * clc(cm, r-1, c, w, ptn) ;
    if c > 1 {
        ret += ptn[c-2] * ptn[w-c] * clc(cm, r-1, c-1, w, ptn);
    }
    if c < w {
        ret += ptn[c-1] * ptn[w-c-1] * clc(cm, r-1, c+1, w, ptn);
    }
    ret
}}

//////////////////////////////////////////////////////////////////

#[test]
fn test_solve() {
   assert_eq!(solve("1 3 2\n"), "1\n");
   assert_eq!(solve("1 3 1\n"), "2\n");
   assert_eq!(solve("2 3 3\n"), "1\n");
   assert_eq!(solve("2 3 1\n"), "5\n");
   assert_eq!(solve("7 1 1\n"), "1\n");
   assert_eq!(solve("15 8 5\n"), "437760187\n");
}
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
struct Finite(u64);
const MOD: u64 = 1_000_000_007;
impl Finite {
    pub fn pow(self, mut exp: u32) -> Self {
        let mut base = self.0;
        let mut acc = 1;
        while exp > 1 {
            if (exp & 1) == 1 {
                acc = acc * base % MOD;
            }
            exp /= 2;
            base = base * base % MOD;
        }
        if exp == 1 {
            acc = acc * base % MOD;
        }
        Finite(acc)
    }
}
impl std::fmt::Display for Finite {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        write!(f, "{}", self.0)
    }
}
impl std::ops::Neg for Finite {
    type Output = Self;
    fn neg(self) -> Self {
        Finite(0) - self
    }
}
impl std::ops::Add for Finite {
    type Output = Self;
    fn add(self, rhs: Self) -> Self {
        Finite((self.0 + rhs.0) % MOD)
    }
}
impl std::ops::AddAssign for Finite {
    fn add_assign(&mut self, rhs: Self) {
        *self = *self + rhs;
    }
}
impl std::ops::Sub for Finite {
    type Output = Self;
    fn sub(self, rhs: Self) -> Self {
        Finite((self.0 + MOD - rhs.0) % MOD)
    }
}
impl std::ops::SubAssign for Finite {
    fn sub_assign(&mut self, rhs: Self) {
        *self = *self - rhs;
    }
}
impl std::ops::Mul for Finite {
    type Output = Self;
    fn mul(self, rhs: Self) -> Self {
        Finite(self.0 * rhs.0 % MOD)
    }
}
impl std::ops::MulAssign for Finite {
    fn mul_assign(&mut self, rhs: Self) {
        *self = *self * rhs;
    }
}
impl std::ops::Div for Finite {
    type Output = Self;
    fn div(self, rhs: Self) -> Self {
        self * rhs.pow((MOD - 2) as u32)
    }
}
impl std::ops::DivAssign for Finite {
    fn div_assign(&mut self, rhs: Self) {
        *self = *self / rhs;
    }
}
impl std::iter::Sum<Finite> for Finite {
    fn sum<I: Iterator<Item = Finite>>(iter: I) -> Finite {
        iter.fold(Finite(0), |a, b| a + b)
    }
}
impl<'a> std::iter::Sum<&'a Finite> for Finite {
    fn sum<I: Iterator<Item = &'a Finite>>(iter: I) -> Finite {
        iter.fold(Finite(0), |a, b| a + *b)
    }
}
impl std::iter::Product<Finite> for Finite {
    fn product<I: Iterator<Item = Finite>>(iter: I) -> Finite {
        iter.fold(Finite(1), |a, b| a * b)
    }
}
impl<'a> std::iter::Product<&'a Finite> for Finite {
    fn product<I: Iterator<Item = &'a Finite>>(iter: I) -> Finite {
        iter.fold(Finite(1), |a, b| a * *b)
    }
}
fn main() {
    let mut buf = String::new();
    use std::io::Read;
    std::io::stdin().read_to_string(&mut buf).unwrap();
    use std::io::Write;
    std::io::stdout().write_all(solve(&buf).as_bytes()).unwrap();
}
struct Scanner<I> {
    src: I,
}
impl<'a> Scanner<std::str::SplitWhitespace<'a>> {
    fn from_str(src: &'a str) -> Self {
        Scanner {
            src: src.split_whitespace(),
        }
    }
}
#[allow(dead_code)]
impl<'a, I> Scanner<I>
where
    I: std::iter::Iterator<Item = &'a str>,
{
    fn read<T: std::str::FromStr>(&mut self) -> T {
        self.src.next().unwrap().parse().ok().expect("Parse error")
    }
    fn vec<T: std::str::FromStr>(&mut self, n: usize) -> Vec<T> {
        (0..n).map(|_| self.read()).collect()
    }
    fn chars(&mut self) -> Vec<char> {
        self.src.next().unwrap().chars().collect()
    }
}

Measured memory_bytes: 4352