snake finds a hat

how does he do it?

snake with no hat