Instructions: Given a text, write a compressed version of it in a single sentence.
Input: Somerset Maugham was a good and careful grammarian but now and then he slipped.
Output:
Somerset Maugham was a grammarian but he slipped sometimes