#include <bits/stdc++.h>
using namespace std;
template <class T>
using vec = std::vector<T>;
template <class T>
using vec2d = std::vector<std::vector<T>>;
template <class T>
vec2d<T> makeVec2d(const int n1, const int n2, const T initValue) {
  return vec2d<T>(n1, vec<T>(n2, initValue));
}
bool __hack = std::ios::sync_with_stdio(false);
auto __hack1 = cin.tie(nullptr);
namespace template_util {
constexpr int bytecount(uint64_t x) { return x ? 1 + bytecount(x >> 8) : 0; }
template <int N>
struct bytetype {};
template <uint64_t N>
struct minimal_uint : bytetype<bytecount(N)> {};
}  // namespace template_util
template <class T>
T next(istream& in) {
  T ret;
  in >> ret;
  return ret;
}
const int MOD = 1000000007;
void add(int& x, int y) {
  x += y;
  if (x >= MOD) {
    x -= MOD;
  }
}
void solve(istream& in, ostream& out) {
  auto n = next<int>(in);
  auto m = next<int>(in);
  auto num = next<int>(in);
  if (n > m) {
    out << 0 << "\n";
    return;
  }
  vec2d<int> dp = makeVec2d<int>(n + 1, n + 1, 0);
  vec2d<int> nxt = makeVec2d<int>(n + 1, n + 1, 0);
  dp[0][0] = 1;
  for (int x = 1; x <= m; ++x) {
    for (int total = 0; total < (n + 1); ++total) {
      for (int opened = 0; opened < (total + 1); ++opened) {
        if (x != num) {
          if (dp[total][opened]) {
            if (total < n) {
              add(nxt[total + 1][opened], dp[total][opened]);
              add(nxt[total + 1][opened + 1], dp[total][opened]);
            }
            if (opened) {
              add(nxt[total][opened - 1], dp[total][opened]);
            }
            add(nxt[total][opened], dp[total][opened]);
          }
        } else {
          if (dp[total][opened]) {
            if (total < n) {
              add(nxt[total + 1][opened], dp[total][opened]);
              add(nxt[total + 1][opened + 1], dp[total][opened]);
            }
          }
        }
      }
    }
    dp = nxt;
    nxt = makeVec2d<int>(n + 1, n + 1, 0);
  }
  int64_t res = dp[n][0];
  for (int i = 2; i <= n; ++i) {
    res = res * i;
    res %= MOD;
  }
  out << res << "\n";
}
int main() {
  solve(cin, cout);
  return 0;
}
