ll N,D[2d6]; { rd(N,D(N)); sortA(N,D); rep(i,N)rep(j,i,2d6,i)D[j]>?=D[i]; wt(max(D(N))); }