ll@(a,b,c,d,e,n);Matrixm(4,4),v(4,1);Mint f[]{0,1,0,0,d,c,1,0,0,0,1,0,1,0,0,1,a,b,e,0};copy(f,f+16,m[0]);copy(f+16,f+20,v[0]);v=m**(n+1)*v;wt(*v[3]);