Writing numbers to 1000