Hello! Say I made a stupid mistake before, next time in a similar situation I find myself smart enough not to do it again. Is there an English proverb or idiomatic expression to describe what I just mentioned? Thanks in advance.