#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, x, pos;
  cin >> n >> x >> pos;
  int a = 0, b = 0;
  int left = 0, right = n;
  while (left < right) {
    int mid = (left + right) / 2;
    if (mid == pos)
      left = mid + 1;
    else if (mid < pos) {
      ++a;
      left = mid + 1;
    } else
      right = mid, ++b;
  }
  long long ans = 1;
  for (int i = x - 1; i >= x - a; --i)
    ans = ((ans % 1000000007) * (i % 1000000007)) % 1000000007;
  for (int i = n - x; i > n - x - b; --i) {
    ans = ((ans % 1000000007) * (i % 1000000007)) % 1000000007;
  }
  for (int i = 1; i <= n - a - b - 1; ++i)
    ans = ((ans % 1000000007) * (i % 1000000007)) % 1000000007;
  cout << ans;
  return 0;
}
