#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
const int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, m, k;
  cin >> n >> m >> k;
  int l = 0, r = n;
  long long ans = 1, b = n - m, s = m - 1;
  while (l < r) {
    int mid = (l + r) / 2;
    if (k >= mid) {
      l = mid + 1;
      if (k == mid) continue;
      ans *= s;
      ans %= mod;
      s--;
      if (b < 0) s++;
    } else {
      ans *= b;
      ans %= mod;
      b--;
      if (s < 0) b++;
      r = mid;
    }
    n--;
  }
  n--;
  while (n > 1) {
    ans *= n;
    ans %= mod;
    n--;
  }
  cout << ans;
}
