ll@n,@a[n][5],f[32]; rep(i,32)f[i]=-ll_inf; rep(k,n){ rep(l,32){ ll x=0; rep(m,5){ x+=a[k][m]*(l&1<