Great job Dianeva, I did basically the same thing.

Spoiler for Solution to Sixty Sombreros:

I got this one really quickly and I have no idea how. Can you remember anything about your thought processes prior to the insight, Di? Interesting that you went for a smoke. The guy told me the puzzle at the pub and I think I went to pee. I recall realising how to do the prisoner one in the same circumstance.