The self is a complex cognitive construct that is shaped by both internal and external factors. Internally, the self consists of the "I" that thinks and acts and the "me" that is one's self-concept and identity. Externally, the self develops through social interactions and comparisons with others. The self is also influenced by social and historical contexts. It involves mental representations of the actual, ideal, and ought selves that can impact self-esteem and behaviors. Maintaining a positive self-concept and self-esteem sometimes leads to narcissism and prioritizing oneself over others in relationships.