{ll@n,c=101;VI@a(n-1);rep(i,101)if((sum(a(n-1))+i)%n)c--;wt(c);}