#include using namespace std; long countArray(int n, int k, int x) { long long a,b; if(x==1){ b=0; a=k-1; } else{ b=1; a=k-2; } for(int i=3; i> n >> k >> x; long answer = countArray(n, k, x); cout << answer << endl; return 0; }