#include <iostream.h>

int newton(int,int);

int main(){
  int k,d;

  cout << " Podaj k : " ;
  cin >> k;
  cout << "Podaj d : ";
  cin >> d;
  cout << " (k po d)= " << newton(k,d) << endl;

  return 0;

}

int newton(int k ,int d){
  if ( k==d || d==0 )
	return 1;
  else
	return newton(k-1,d-1)+newton(k-1,d);
}
