Which of these is an example of a hereditary risk factor?

Smoking
Eating junk food everyday
Being a couch potato
Having fair skin that is prone to sunburn

Having fair skin that is prone to sunburn is an example of a hereditary risk factor.

Having fair skin that is prone to sunburn