sum=499999500000 n=3000000