The urinary system consists of the kidneys, ureters, urinary bladder, and urethra. The kidneys filter waste from the blood and produce urine. The kidneys are bean-shaped organs located retroperitoneally on either side of the spine. The ureters carry urine from the kidneys to the urinary bladder. The bladder stores urine until urination. In males, the urethra carries both urine and semen, while in females it only carries urine. The male urethra is longer than the female urethra. The document then provides detailed descriptions of kidney anatomy and the structure and course of the male and female urethra.