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,0,1,0,1,a,b,e,a};copy(f,f+16,m[0]);copy(f+16,f+20,v[0]);wt(*(m**n*v)[3]);