n ranges from 1 to 10000