Like tomtuttle, I knew I'd encountered this exercise before but couldn't remember what the answer was.