Sentence:  Be mindful, when invention fails, / To <WSD>scratch</WSD> your head, and bite your nails. 
Meaning of the word marked with <WSD> tags:  To rub a surface with a sharp object, especially by a living creature to remove itching with nails, claws, etc.