Important to choose your parents wisely. 
1~ Great genes
2~ Love of reading, throughout life, a habit also modeled by parents.
3~ A home environment which loves learning and is intellectual by nature
4~ A school environment which communicates that learning, and learning deeply, is much cooler than resorting to the easy way out (during those years especially)