mint d[2d6][4];ll n;{rd(n);*d[0..1]=1;rep(i,n)rep(j,1,4)d[i+j][0..]+=d[i][j%3]+d[i][-~j%3];wt(sum(d[n](3)));}