#include<iostream>
using namespace std;
int f(int x,int y);
int main()
{   
 cout<<f(2,3);
 system("pause");
 return 0;
}
int f(int x,int y)
{
    if(x==1 && y==1) return 1;
    return f(x-1,y-1)+y*f(x,1)+f(1,y-1);
}