#include #include using namespace std; const int maxn=50; const __int64 INF=(__int64)1<<60; typedef __int64 lld; typedef struct node { lld v[maxn][maxn]; }node; node d,e1,e2,e; int n,tmin,tmax; node mul1(node a,node b) { int i,j,k; node c; for(i=0;i>=1; } return t; } node mul2(node a,node b) { int i,j,k; node c=a; for(i=0;i>=1; } return t; } int main() { int i,j,k; for(i=0;i<50;i++)for(j=0;j<50;j++)e.v[i][j]=0; for(i=0;i<50;i++)e.v[i][i]=1; while(scanf("%d%d%d",&n,&tmin,&tmax)!=EOF) { for(i=0;i