#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int n, x, pos;
  cin >> n >> x >> pos;
  long long int lo = 0, hi = n, mid;
  long long int cl = 0, ch = 0;
  long long int xl = x - 1;
  long long int xh = n - x;
  long long int ans = 1;
  while (lo < hi) {
    mid = (lo + hi) / 2;
    if (mid <= pos) {
      lo = mid + 1;
      if (mid != pos) ans *= xl, xl--;
    } else {
      hi = mid;
      ans *= xh;
      xh--;
    }
    ans %= 1000000007;
  }
  for (long long int i = 1; i < xl + xh + 1; i++) {
    ans *= i;
    ans %= 1000000007;
  }
  cout << ans << endl;
}
