It is difficult to say which of these factors is most important in determining a person's traits and characteristics, as they all play a role. Genes provide the basic blueprint for an organism's development, but the environment can also have a significant impact. For example, a person who is raised in a poverty-stricken environment may be more likely to develop health problems than someone who is raised in a wealthy environment. Chance events can also play a role, such as a person who is in a car accident may suffer a brain injury that affects their personality.
In reality, genes, environment, and chance all work together to determine a person's traits and characteristics. It is impossible to say which of these factors is most important, as they all play a role.