corrected whitespace
More careful about integer division
More careful about integer division