maximum 500+500*(n-1)/(n+1)-10n, n>0